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
In my shared code I have:
called in the constructor of a view (actually a Rg.Plugins.Popup.Pages.PopupPage view):
Stream beepStream = UIBits.ImageFactory.Instance.GetAsset("UIBits.Assets.beep.mp3");
audioPlayer = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer();
audioPlayer.Load(beepStream);
then later in response to an action:
audioPlayer.Play();
this initially works fine.
But after maybe a dozen times (I haven't actually counted) the sound stops being produced. In the application output I see:
[MediaPlayer-JNI] start
[MediaPlayerNative] start
[MediaPlayerNative] message received msg=300, ext1=0, ext2=0
[MediaPlayerNative] Received SEC_MM_PLAYER_CONTEXT_AWARE
[MediaPlayerNative] callback application
[MediaPlayerNative] back from callback
[MediaPlayerNative] message received msg=100, ext1=1, ext2=-19
[MediaPlayerNative] error (1, -19)
[MediaPlayerNative] callback application
[MediaPlayerNative] back from callback
[MediaPlayer] Error (1,-19)
do I need to do something else when the sound is played to release resources or something? or is this a bug?
The text was updated successfully, but these errors were encountered:
In my shared code I have:
called in the constructor of a view (actually a Rg.Plugins.Popup.Pages.PopupPage view):
Stream beepStream = UIBits.ImageFactory.Instance.GetAsset("UIBits.Assets.beep.mp3");
audioPlayer = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer();
audioPlayer.Load(beepStream);
then later in response to an action:
audioPlayer.Play();
this initially works fine.
But after maybe a dozen times (I haven't actually counted) the sound stops being produced. In the application output I see:
[MediaPlayer-JNI] start
[MediaPlayerNative] start
[MediaPlayerNative] message received msg=300, ext1=0, ext2=0
[MediaPlayerNative] Received SEC_MM_PLAYER_CONTEXT_AWARE
[MediaPlayerNative] callback application
[MediaPlayerNative] back from callback
[MediaPlayerNative] message received msg=100, ext1=1, ext2=-19
[MediaPlayerNative] error (1, -19)
[MediaPlayerNative] callback application
[MediaPlayerNative] back from callback
[MediaPlayer] Error (1,-19)
do I need to do something else when the sound is played to release resources or something? or is this a bug?
The text was updated successfully, but these errors were encountered: