Write() публичный Метод

public Write ( short Samples, System.Action ActionCallbackOnReaded ) : void
Samples short
ActionCallbackOnReaded System.Action
Результат void
Пример #1
0
 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;
 }