// ======================================================================= // Shutdown sound engine // ======================================================================= void S_Shutdown (void) { if (!sound_started) return; sound_started = 0; snd_blocked = 0; S_CodecShutdown(); SNDDMA_Shutdown(); shm = NULL; }
void S_Shutdown() { if (si.Shutdown) si.Shutdown(); Com_Memset( &si, 0, sizeof(si) ); Cmd_RemoveCommand( "play" ); Cmd_RemoveCommand( "music" ); Cmd_RemoveCommand( "s_list" ); Cmd_RemoveCommand( "s_stop" ); Cmd_RemoveCommand( "s_info" ); S_CodecShutdown(); }
/* ================= S_Shutdown ================= */ void S_Shutdown( void ) { if( si.Shutdown ) { si.Shutdown( ); } Com_Memset( &si, 0, sizeof( soundInterface_t ) ); Cmd_RemoveCommand( "play" ); Cmd_RemoveCommand( "music"); Cmd_RemoveCommand( "s_list" ); Cmd_RemoveCommand( "s_stop" ); Cmd_RemoveCommand( "s_info" ); S_CodecShutdown( ); }