You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On iOS, if I play background music using AudioEngine::play2d, then send the app to the background and change the audio route (e.g., from speaker to headphones or vice versa), the audio does not resume when returning to the app.
In this situation, the following log message appears:
AURemoteIO.cpp:1666 AUIOClient_StartIO failed
Steps to Reproduce:
Start playing audio using AudioEngine::play2d("bgm.mp3").
Send the app to the background.
Switch the audio output (e.g., plug in or unplug headphones).
Return to the app.
The background music is no longer audible.
Workaround:
If I comment out the following lines in AudioEngineImpl.cpp, the issue no longer occurs:
else if ([notification.name isEqualToString:AVAudioSessionRouteChangeNotification])
{ // replay
//// ccALPauseDevice();
//// ccALResumeDevice();
}
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
On iOS, if I play background music using AudioEngine::play2d, then send the app to the background and change the audio route (e.g., from speaker to headphones or vice versa), the audio does not resume when returning to the app.
In this situation, the following log message appears:
AURemoteIO.cpp:1666 AUIOClient_StartIO failed
Steps to Reproduce:
The background music is no longer audible.
Workaround:
If I comment out the following lines in AudioEngineImpl.cpp, the issue no longer occurs:
else if ([notification.name isEqualToString:AVAudioSessionRouteChangeNotification])
{ // replay
//// ccALPauseDevice();
//// ccALResumeDevice();
}
The text was updated successfully, but these errors were encountered: