mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
ASIO: Read buffer size after setting device sample rate
This commit is contained in:
parent
27af34af8b
commit
b5c0c75a5b
1 changed files with 1 additions and 3 deletions
|
|
@ -415,11 +415,8 @@ public:
|
||||||
auto err = asioObject->getChannels (&totalNumInputChans, &totalNumOutputChans);
|
auto err = asioObject->getChannels (&totalNumInputChans, &totalNumOutputChans);
|
||||||
jassert (err == ASE_OK);
|
jassert (err == ASE_OK);
|
||||||
|
|
||||||
bufferSizeSamples = readBufferSizes (bufferSizeSamples);
|
|
||||||
|
|
||||||
auto sampleRate = sr;
|
auto sampleRate = sr;
|
||||||
currentSampleRate = sampleRate;
|
currentSampleRate = sampleRate;
|
||||||
currentBlockSizeSamples = bufferSizeSamples;
|
|
||||||
currentChansOut.clear();
|
currentChansOut.clear();
|
||||||
currentChansIn.clear();
|
currentChansIn.clear();
|
||||||
|
|
||||||
|
|
@ -441,6 +438,7 @@ public:
|
||||||
buffersCreated = false;
|
buffersCreated = false;
|
||||||
|
|
||||||
setSampleRate (sampleRate);
|
setSampleRate (sampleRate);
|
||||||
|
currentBlockSizeSamples = bufferSizeSamples = readBufferSizes (bufferSizeSamples);
|
||||||
|
|
||||||
// (need to get this again in case a sample rate change affected the channel count)
|
// (need to get this again in case a sample rate change affected the channel count)
|
||||||
err = asioObject->getChannels (&totalNumInputChans, &totalNumOutputChans);
|
err = asioObject->getChannels (&totalNumInputChans, &totalNumOutputChans);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue