Ejemplo n.º 1
0
        private int OnAudioAvailableCallback(ref PinMameApi.PinmameAudioInfo audioInfoRef)
        {
            var audioInfo = new PinMameAudioInfo(audioInfoRef);

            Logger.Trace($"OnAudioAvailableCallback - audioInfo={audioInfo}");

            return(OnAudioAvailable?.Invoke(audioInfo) ?? 0);
        }
Ejemplo n.º 2
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);
 }
Ejemplo n.º 3
0
        // ----------------------------------------------------------------------------------------------------------------------------------------

        // Event when the audio is available.
        private void AudioAvailable(GenericEventArgs <Stream> e)
        {
            OnAudioAvailable?.Invoke(this, e);
        }