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
When calling .setActive(false) I get an error PlatformException(560030580, Session deactivation failed, null, null) after flutter_soloud has loaded an asset
final _session =awaitAudioSession.instance;
await _session.configure(constAudioSessionConfiguration.music());
final _soloud =SoLoud.instance;
await _soloud.init();
await _session.setActive(true); // completes as expectedfinal _ =await _soloud.loadAsset("tone.wav"); // commenting this out resolves the issueawait _session.setActive(false); // PlatformException(560030580, Session deactivation failed, null, null)
This package merely wraps the raw API calls, in this case to AVAudioSession.setActive, and so you would need to consult Apple's documentation to understand the API response. According to the documentation, the code 560030580 corresponds to the message "AVAudioSessionErrorCodeIsBusy".
The session fails to activate if another audio session has higher priority than yours (such as a phone call) and neither audio session allows mixing. Deactivating an audio session with running audio objects stops the objects, makes the session inactive, and returns an AVAudioSessionErrorCodeIsBusy error.
When calling
.setActive(false)
I get an errorPlatformException(560030580, Session deactivation failed, null, null)
afterflutter_soloud
has loaded an assetThe text was updated successfully, but these errors were encountered: