Browse Source

Add 24000 Hz to standard device sample rates to support Airpods Pro

v6.1.6
Tom Poole 4 years ago
parent
commit
de97e53a87
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      modules/juce_audio_devices/native/juce_linux_ALSA.cpp
  2. +1
    -1
      modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp
  3. +1
    -1
      modules/juce_audio_devices/native/juce_win32_ASIO.cpp
  4. +1
    -1
      modules/juce_audio_devices/native/juce_win32_WASAPI.cpp

+ 1
- 1
modules/juce_audio_devices/native/juce_linux_ALSA.cpp View File

@@ -50,7 +50,7 @@ namespace
static void getDeviceSampleRates (snd_pcm_t* handle, Array<double>& rates) static void getDeviceSampleRates (snd_pcm_t* handle, Array<double>& rates)
{ {
const int ratesToTry[] = { 22050, 32000, 44100, 48000, 88200, 96000, 176400, 192000, 0 };
const int ratesToTry[] = { 22050, 24000, 32000, 44100, 48000, 88200, 96000, 176400, 192000, 0 };
snd_pcm_hw_params_t* hwParams; snd_pcm_hw_params_t* hwParams;
snd_pcm_hw_params_alloca (&hwParams); snd_pcm_hw_params_alloca (&hwParams);


+ 1
- 1
modules/juce_audio_devices/native/juce_mac_CoreAudio.cpp View File

@@ -294,7 +294,7 @@ public:
if (OK (AudioObjectGetPropertyData (deviceID, &pa, 0, nullptr, &size, ranges))) if (OK (AudioObjectGetPropertyData (deviceID, &pa, 0, nullptr, &size, ranges)))
{ {
for (auto r : { 8000, 11025, 16000, 22050, 32000,
for (auto r : { 8000, 11025, 16000, 22050, 24000, 32000,
44100, 48000, 88200, 96000, 176400, 44100, 48000, 88200, 96000, 176400,
192000, 352800, 384000, 705600, 768000 }) 192000, 352800, 384000, 705600, 768000 })
{ {


+ 1
- 1
modules/juce_audio_devices/native/juce_win32_ASIO.cpp View File

@@ -350,7 +350,7 @@ public:
if (asioObject != nullptr) if (asioObject != nullptr)
{ {
for (auto rate : { 8000, 11025, 16000, 22050, 32000,
for (auto rate : { 8000, 11025, 16000, 22050, 24000, 32000,
44100, 48000, 88200, 96000, 176400, 44100, 48000, 88200, 96000, 176400,
192000, 352800, 384000, 705600, 768000 }) 192000, 352800, 384000, 705600, 768000 })
if (asioObject->canSampleRate ((double) rate) == 0) if (asioObject->canSampleRate ((double) rate) == 0)


+ 1
- 1
modules/juce_audio_devices/native/juce_win32_WASAPI.cpp View File

@@ -676,7 +676,7 @@ private:
void querySupportedSampleRates (WAVEFORMATEXTENSIBLE format, ComSmartPtr<IAudioClient>& audioClient) void querySupportedSampleRates (WAVEFORMATEXTENSIBLE format, ComSmartPtr<IAudioClient>& audioClient)
{ {
for (auto rate : { 8000, 11025, 16000, 22050, 32000,
for (auto rate : { 8000, 11025, 16000, 22050, 24000, 32000,
44100, 48000, 88200, 96000, 176400, 44100, 48000, 88200, 96000, 176400,
192000, 352800, 384000, 705600, 768000 }) 192000, 352800, 384000, 705600, 768000 })
{ {


Loading…
Cancel
Save