From 0b6992fb43ae021eae74c85da28229a3c95163dc Mon Sep 17 00:00:00 2001 From: Poliwrath Date: Thu, 7 Mar 2019 21:42:12 -0500 Subject: [PATCH] Implement SEGAAPI_SetSynthParamMultiple --- Opensegaapi/src/opensegaapi.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Opensegaapi/src/opensegaapi.cpp b/Opensegaapi/src/opensegaapi.cpp index a4b4e21..c19ba81 100644 --- a/Opensegaapi/src/opensegaapi.cpp +++ b/Opensegaapi/src/opensegaapi.cpp @@ -1017,6 +1017,16 @@ extern "C" { return OPEN_SEGA_SUCCESS; } + __declspec(dllexport) OPENSEGASTATUS SEGAAPI_SetSynthParamMultiple(void* hHandle, unsigned int dwNumParams, + OPEN_SynthParamSet* pSynthParams) + { + for (int i = 0; i < dwNumParams; i++) + { + SEGAAPI_SetSynthParam(hHandle, pSynthParams[i].param, pSynthParams[i].lPARWValue); + } + return OPEN_SEGA_SUCCESS; + } + __declspec(dllexport) OPENSEGASTATUS SEGAAPI_SetChannelVolume(void* hHandle, unsigned int dwChannel, unsigned int dwVolume) {