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

GetChannel() private method

private GetChannel ( int ChannelId, bool CanAlloc = false ) : PspAudioChannel
ChannelId int
CanAlloc bool
return CSPspEmu.Core.Audio.PspAudioChannel
        private PspAudioChannel GetChannel(int ChannelId, bool CanAlloc = false)
        {
            try
            {
                return PspAudio.GetChannel(ChannelId, CanAlloc);
            }
            catch (NoChannelsAvailableException)
            {
                throw (new SceKernelException(SceKernelErrors.ERROR_AUDIO_NO_CHANNELS_AVAILABLE));
            }
            catch (InvalidChannelException)
            {
                throw (new SceKernelException(SceKernelErrors.ERROR_AUDIO_INVALID_CHANNEL));
            }
        }