void OnDecodeError(object sender, AVErrorEventArgs args) { lock (sSync) { sAsyncEventDispatcher.Add(() => { dispatchEvent(new IOErrorEvent(IOErrorEvent.IO_ERROR)); }); } }
private void OnAudioPlayerDecoderError(object sender, AVErrorEventArgs e) { musicMediaEvents.Enqueue(new SoundMusicEventNotification(SoundMusicEvent.ErrorOccurred, e)); }
void Player_DecoderError(object sender, AVErrorEventArgs e) { Ended.TrySetException(new Exception("Failed to play audio > " + e.Error.Description)); }