mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
iOS: Set target settings before updating hardware info to reduce the number of device changes
This commit is contained in:
parent
462c1c857e
commit
a433e4dce0
1 changed files with 2 additions and 2 deletions
|
|
@ -694,8 +694,8 @@ struct iOSAudioIODevice::Pimpl final : public AsyncUpdater
|
|||
setAudioSessionCategory (requestedInputChannels > 0 ? AVAudioSessionCategoryPlayAndRecord
|
||||
: AVAudioSessionCategoryPlayback);
|
||||
channelData.reconfigure (requestedInputChannels, requestedOutputChannels);
|
||||
updateHardwareInfo (true);
|
||||
setTargetSampleRateAndBufferSize();
|
||||
updateHardwareInfo (true);
|
||||
fixAudioRouteIfSetToReceiver();
|
||||
|
||||
isRunning = true;
|
||||
|
|
@ -1348,8 +1348,8 @@ struct iOSAudioIODevice::Pimpl final : public AsyncUpdater
|
|||
|
||||
}
|
||||
|
||||
updateHardwareInfo();
|
||||
setTargetSampleRateAndBufferSize();
|
||||
updateHardwareInfo();
|
||||
|
||||
if (isRunning)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue