CSPspEmu.Hle.Modules.audio.sceAudio._sceAudioOutputPannedBlocking C# (CSharp) Method

_sceAudioOutputPannedBlocking() private method

private _sceAudioOutputPannedBlocking ( PspAudioChannel Channel, int LeftVolume, int RightVolume, short Buffer, bool Blocking ) : int
Channel CSPspEmu.Core.Audio.PspAudioChannel
LeftVolume int
RightVolume int
Buffer short
Blocking bool
return int
        private int _sceAudioOutputPannedBlocking(PspAudioChannel Channel, int LeftVolume, int RightVolume, short* Buffer, bool Blocking)
        {
            ThreadManager.Current.SetWaitAndPrepareWakeUp(HleThread.WaitType.Audio, String.Format("_sceAudioOutputPannedBlocking({0}, Volume({1}, {2}), Blocking({3}))", Channel, LeftVolume, RightVolume, Blocking), Channel, WakeUpCallback =>
            {
                Channel.Write(Buffer, LeftVolume, RightVolume, () =>
                {
                    if (Blocking) WakeUpCallback();
                });
                /*
                if (Blocking)
                {
                    PspRtc.RegisterTimerInOnce(TimeSpan.FromMilliseconds(1), () =>
                    {
                        WakeUpCallback();
                    });
                }
                */
                if (!Blocking) WakeUpCallback();
            });
            return Channel.SampleCount;
        }

Same methods

sceAudio::_sceAudioOutputPannedBlocking ( int ChannelId, int LeftVolume, int RightVolume, short Buffer, bool Blocking ) : int