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

sceAudioOutput2Reserve() private method

private sceAudioOutput2Reserve ( int SampleCount ) : int
SampleCount int
return int
        public int sceAudioOutput2Reserve(int SampleCount)
        {
            if (!IsValidSampleCountOutput2(SampleCount)) throw (new SceKernelException(SceKernelErrors.ERROR_INVALID_SIZE));
            if (!PspAudio.SrcOutput2Channel.Available) throw (new SceKernelException(SceKernelErrors.ERROR_AUDIO_CHANNEL_ALREADY_RESERVED));
            PspAudio.SrcOutput2Channel.Available = false;
            PspAudio.SrcOutput2Channel.SampleCount = SampleCount;
            PspAudio.SrcOutput2Channel.Format = PspAudio.FormatEnum.Stereo;
            //Output2Reserved = true;
            //_sceAudioChReserve(-1, SamplesCount, PspAudio.FormatEnum.Stereo, false);
            return 0;
            //throw(new NotImplementedException());
        }