/** * psp_sound_deinit: Shut down the sound interface. * * [Parameters] * None * [Return value] * None */ static void psp_sound_deinit(void) { stop_channel(&stereo_buffer); unsigned int i; for (i = 0x5A0; i < 0x5B0; i++) { ReadByteList [i] = SoundRamReadByte; ReadWordList [i] = SoundRamReadWord; ReadLongList [i] = SoundRamReadLong; WriteByteList[i] = SoundRamWriteByte; WriteWordList[i] = SoundRamWriteWord; WriteLongList[i] = SoundRamWriteLong; } }
void process_cmd(uint32 cmd) { /* cmd is channel to look at +1 */ cmd--; switch(chans[cmd].cmd) { case AICA_CMD_NONE: break; case AICA_CMD_START: start_channel(cmd); active = 0; break; case AICA_CMD_STOP: stop_channel(cmd); active = 0; break; case AICA_CMD_VOL: vol_channel(cmd); break; } }
/** * psp_sound_exit: Terminate all playback in preparation for exiting. * * [Parameters] * None * [Return value] * None */ void psp_sound_exit(void) { if (stereo_buffer.started) { stop_channel(&stereo_buffer); } }
void Media::stop_samples() { for (int i = 0; i < MAX_CHANNELS; i++) { stop_channel(i); } }
void Media::stop_samples() { for (int i = 0; i < 32; i++) { stop_channel(i); } }