mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
CoreAudio sample rate handling fix.
This commit is contained in:
parent
c21e90a2a7
commit
42724dddfe
1 changed files with 3 additions and 3 deletions
|
|
@ -776,12 +776,13 @@ public:
|
|||
|
||||
if (oldBufferSize != bufferSize || oldSampleRate != sampleRate)
|
||||
{
|
||||
AudioIODeviceCallback* const oldCallback = callback;
|
||||
callbacksAllowed = false;
|
||||
stop (false);
|
||||
updateDetailsFromDevice();
|
||||
callbacksAllowed = true;
|
||||
|
||||
owner.restart();
|
||||
owner.restart (oldCallback);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1013,9 +1014,8 @@ public:
|
|||
internal->stop (false);
|
||||
}
|
||||
|
||||
void restart()
|
||||
void restart (AudioIODeviceCallback* const oldCallback)
|
||||
{
|
||||
AudioIODeviceCallback* oldCallback = internal->callback;
|
||||
stop();
|
||||
|
||||
if (oldCallback != nullptr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue