diff --git a/hi_scripting/scripting/api/ScriptingApi.cpp b/hi_scripting/scripting/api/ScriptingApi.cpp index 1c28a8e516..11feb11227 100644 --- a/hi_scripting/scripting/api/ScriptingApi.cpp +++ b/hi_scripting/scripting/api/ScriptingApi.cpp @@ -2590,7 +2590,7 @@ var ScriptingApi::Settings::getAvailableBufferSizes() if (currentDevice != nullptr) { - Array bufferSizes = HiseSettings::ConversionHelpers::getBufferSizesForDevice(currentDevice); + Array bufferSizes = currentDevice->getAvailableBufferSizes(); for (auto x : bufferSizes) result.add(x); @@ -2620,7 +2620,7 @@ var ScriptingApi::Settings::getAvailableSampleRates() if (currentDevice != nullptr) { - auto samplerates = HiseSettings::ConversionHelpers::getSampleRates(currentDevice); + auto samplerates = currentDevice->getAvailableSampleRates(); for (auto x : samplerates) result.add(String(x, 0));