Browse Source

Windows: Use a default sample rate if one hasn't been specified in DSoundAudioIODevice::open()

tags/2021-05-28
ed 6 years ago
parent
commit
80c5f5e15e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_audio_devices/native/juce_win32_DirectSound.cpp

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

@@ -1094,7 +1094,7 @@ String DSoundAudioIODevice::openDevice (const BigInteger& inputChannels,
{
closeDevice();
sampleRate = sampleRate_;
sampleRate = sampleRate_ > 0.0 ? sampleRate_ : 44100.0;
if (bufferSizeSamples_ <= 0)
bufferSizeSamples_ = 960; // use as a default size if none is set.


Loading…
Cancel
Save