1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +00:00

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

This commit is contained in:
ed 2019-03-01 10:17:29 +00:00
parent 730fd6955f
commit 80c5f5e15e

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.