Пример #1
0
        private int OnAudioAvailableCallback(ref PinMameApi.PinmameAudioInfo audioInfoRef)
        {
            var audioInfo = new PinMameAudioInfo(audioInfoRef);

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

            return(OnAudioAvailable?.Invoke(audioInfo) ?? 0);
        }
Пример #2
0
        private static int OnAudioAvailable(PinMameAudioInfo audioInfo)
        {
            Logger.Info($"OnAudioAvailable: audioInfo={audioInfo}");

            return(audioInfo.SamplesPerFrame);
        }