private int OnAudioAvailableCallback(ref PinMameApi.PinmameAudioInfo audioInfoRef) { var audioInfo = new PinMameAudioInfo(audioInfoRef); Logger.Trace($"OnAudioAvailableCallback - audioInfo={audioInfo}"); return(OnAudioAvailable?.Invoke(audioInfo) ?? 0); }
private static int OnAudioAvailable(PinMameAudioInfo audioInfo) { Logger.Info($"OnAudioAvailable: audioInfo={audioInfo}"); return(audioInfo.SamplesPerFrame); }