mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +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
|
setAudioSessionCategory (requestedInputChannels > 0 ? AVAudioSessionCategoryPlayAndRecord
|
||||||
: AVAudioSessionCategoryPlayback);
|
: AVAudioSessionCategoryPlayback);
|
||||||
channelData.reconfigure (requestedInputChannels, requestedOutputChannels);
|
channelData.reconfigure (requestedInputChannels, requestedOutputChannels);
|
||||||
updateHardwareInfo (true);
|
|
||||||
setTargetSampleRateAndBufferSize();
|
setTargetSampleRateAndBufferSize();
|
||||||
|
updateHardwareInfo (true);
|
||||||
fixAudioRouteIfSetToReceiver();
|
fixAudioRouteIfSetToReceiver();
|
||||||
|
|
||||||
isRunning = true;
|
isRunning = true;
|
||||||
|
|
@ -1348,8 +1348,8 @@ struct iOSAudioIODevice::Pimpl final : public AsyncUpdater
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updateHardwareInfo();
|
|
||||||
setTargetSampleRateAndBufferSize();
|
setTargetSampleRateAndBufferSize();
|
||||||
|
updateHardwareInfo();
|
||||||
|
|
||||||
if (isRunning)
|
if (isRunning)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue