CSPspEmu.Hle.Modules.audio.sceVaudio.sceVaudioOutputBlocking C# (CSharp) Method

sceVaudioOutputBlocking() private method

private sceVaudioOutputBlocking ( int Volume, byte Buffer ) : void
Volume int
Buffer byte
return void
        public void sceVaudioOutputBlocking(int Volume, byte* Buffer)
        {
            if (Buffer == null) throw (new SceKernelException(SceKernelErrors.ERROR_AUDIO_PRIV_REQUIRED));

            #if false
            if (!pspVaudioChannel.isOutputBlocking()) {
                if (log.isDebugEnabled()) {
                    log.debug("sceVaudioOutputBlocking[not blocking] " + pspVaudioChannel.toString());
                }
                if((vol & PSP_VAUDIO_VOLUME_BASE) != PSP_VAUDIO_VOLUME_BASE) {
                    changeChannelVolume(pspVaudioChannel, vol, vol);
                }
                cpu.gpr[2] = doAudioOutput(pspVaudioChannel, buf);
                if (log.isDebugEnabled()) {
                    log.debug("sceVaudioOutputBlocking[not blocking] returning " + cpu.gpr[2] + " (" + pspVaudioChannel.toString() + ")");
                }
                Modules.ThreadManForUserModule.hleRescheduleCurrentThread();
            } else {
                if (log.isDebugEnabled()) {
                    log.debug("sceVaudioOutputBlocking[blocking] " + pspVaudioChannel.toString());
                }
                blockThreadOutput(pspVaudioChannel, buf, vol, vol);
            }
            #endif
        }