Browse Source

Added 32K as a supported ASIO sample rate

tags/2021-05-28
jules 9 years ago
parent
commit
f58eda8f3e
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      modules/juce_audio_devices/native/juce_win32_ASIO.cpp

+ 3
- 2
modules/juce_audio_devices/native/juce_win32_ASIO.cpp View File

@@ -365,17 +365,18 @@ public:
void updateSampleRates() void updateSampleRates()
{ {
// find a list of sample rates.. // find a list of sample rates..
const int possibleSampleRates[] = { 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000 };
Array<double> newRates; Array<double> newRates;
if (asioObject != nullptr) if (asioObject != nullptr)
{ {
const int possibleSampleRates[] = { 32000, 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000 };
for (int index = 0; index < numElementsInArray (possibleSampleRates); ++index) for (int index = 0; index < numElementsInArray (possibleSampleRates); ++index)
if (asioObject->canSampleRate ((double) possibleSampleRates[index]) == 0) if (asioObject->canSampleRate ((double) possibleSampleRates[index]) == 0)
newRates.add ((double) possibleSampleRates[index]); newRates.add ((double) possibleSampleRates[index]);
} }
if (newRates.size() == 0)
if (newRates.isEmpty())
{ {
double cr = getSampleRate(); double cr = getSampleRate();
JUCE_ASIO_LOG ("No sample rates supported - current rate: " + String ((int) cr)); JUCE_ASIO_LOG ("No sample rates supported - current rate: " + String ((int) cr));


Loading…
Cancel
Save