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:
parent
730fd6955f
commit
80c5f5e15e
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue