Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AVAudioSession setActive:withOptions:error:]: Deactivating an audio session that has running I/O. All I/O should be stopped or paused prior to deactivating the audio session. #19209

Open
Akhrorjon opened this issue Nov 27, 2018 · 0 comments

Comments

@Akhrorjon
Copy link

  • cocos2d-x version: 3.17
  • devices test on: Iphone 6, 8, IPad pro 12.9
  • developing environments
    • NDK version:
    • Xcode version: 10.1 (10B61)
    • VS version:
    • browser type and version:

Bug:

  • Not often happens but it happens. Background music is stopped when you switch between two apps(games written in cocos2d-x) but it easily played when switched to another scene, when this happens log shows this error ([AVAudioSession setActive:withOptions:error:]: Deactivating an audio session that has running I/O. All I/O should be stopped or paused prior to deactivating the audio session).
  • Rarely, when you switch between two apps, sound effects are also not played, and in order to play it, you have to restart the game.

Anybody has already faced this problem?
Any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant