示例#1
0
        //public static Logger log = Modules.getLogger("sceVaudio");

        public override void start()
        {
            SoundChannel.init();

            // The PSP is using the same channel as the SRC channel(s)
            pspVaudio1Channel        = Modules.sceAudioModule.pspSRC1Channel;
            pspVaudio2Channel        = Modules.sceAudioModule.pspSRC2Channel;
            pspVaudioChannelReserved = false;

            base.start();
        }
示例#2
0
        public override void start()
        {
            SoundChannel.init();

            // The audio driver is capable of handling PCM and VAG (ADPCM) playback,
            // but it uses the same channels for this processing.
            // E.g.: Use channels 0 to 4 to playback 4 VAG files or use channels 0 to 2
            // to playback raw PCM data.
            // Note: Currently, working with pspPCMChannels only is enough.
            pspPCMChannels = new SoundChannel[PSP_AUDIO_CHANNEL_MAX];
            for (int channel = 0; channel < pspPCMChannels.Length; channel++)
            {
                pspPCMChannels[channel] = new SoundChannel(channel);
            }
            pspSRC1Channel = new SoundChannel(8);             // Use a special channel 8 to handle SRC functions (first channel).
            pspSRC2Channel = new SoundChannel(9);             // Use a special channel 9 to handle SRC functions (second channel).

            base.start();
        }