private int OnAudioAvailableCallback(ref PinMameApi.PinmameAudioInfo audioInfoRef) { var audioInfo = new PinMameAudioInfo(audioInfoRef); Logger.Trace($"OnAudioAvailableCallback - audioInfo={audioInfo}"); return(OnAudioAvailable?.Invoke(audioInfo) ?? 0); }
/// <summary> /// Function to raise <see cref="OnAudioAvailable"/> event /// </summary> /// <param name="args"><see cref="AudioEventArgs"/> containing event data as a Stream</param> private void RaiseOnAudioAvailable(AudioEventArgs args) { OnAudioAvailable?.Invoke(this, args); }
// ---------------------------------------------------------------------------------------------------------------------------------------- // Event when the audio is available. private void AudioAvailable(GenericEventArgs <Stream> e) { OnAudioAvailable?.Invoke(this, e); }