mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
iOS Audio: Reset sample rate to default after querying available rates
This commit is contained in:
parent
aca71ca788
commit
6f20de5434
1 changed files with 4 additions and 0 deletions
|
|
@ -520,6 +520,10 @@ struct iOSAudioIODevice::Pimpl final : public AsyncUpdater
|
|||
|
||||
availableSampleRates.addIfNotAlreadyThere (highestRate);
|
||||
|
||||
// Reset sample rate back to the original, so that we don't end up stuck on the highest rate
|
||||
sampleRate = trySampleRate (sampleRate);
|
||||
bufferSize = getBufferSize (sampleRate);
|
||||
|
||||
AudioUnitAddPropertyListener (audioUnit,
|
||||
kAudioUnitProperty_StreamFormat,
|
||||
dispatchAudioUnitPropertyChange,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue