From f58eda8f3ee681b3def4dbef35a5db05762bac1c Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 3 Jun 2016 11:03:48 +0100 Subject: [PATCH] Added 32K as a supported ASIO sample rate --- modules/juce_audio_devices/native/juce_win32_ASIO.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/juce_audio_devices/native/juce_win32_ASIO.cpp b/modules/juce_audio_devices/native/juce_win32_ASIO.cpp index cbe963f5df..542b3dbc13 100644 --- a/modules/juce_audio_devices/native/juce_win32_ASIO.cpp +++ b/modules/juce_audio_devices/native/juce_win32_ASIO.cpp @@ -365,17 +365,18 @@ public: void updateSampleRates() { // find a list of sample rates.. - const int possibleSampleRates[] = { 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000 }; Array newRates; if (asioObject != nullptr) { + const int possibleSampleRates[] = { 32000, 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000 }; + for (int index = 0; index < numElementsInArray (possibleSampleRates); ++index) if (asioObject->canSampleRate ((double) possibleSampleRates[index]) == 0) newRates.add ((double) possibleSampleRates[index]); } - if (newRates.size() == 0) + if (newRates.isEmpty()) { double cr = getSampleRate(); JUCE_ASIO_LOG ("No sample rates supported - current rate: " + String ((int) cr));