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;
}