void AL_Shutdown( void ) { Com_Printf( "Shutting down OpenAL.\n" ); S_AL_StreamDie(); qalDeleteSources(1, &streamSource); qalDeleteFilters(1, &underwaterFilter); if( s_numchannels ) { // delete source names qalDeleteSources( s_numchannels, s_srcnums ); memset( s_srcnums, 0, sizeof( s_srcnums ) ); s_numchannels = 0; } QAL_Shutdown(); }
/* * Shuts the OpenAL backend down */ void AL_Shutdown ( void ) { Com_Printf ( "Shutting down OpenAL.\n" ); AL_StreamDie(); qalDeleteSources ( 1, &streamSource ); #if !defined (HT_OS_OSX) qalDeleteFilters ( 1, &underwaterFilter ); #endif if ( s_numchannels ) { /* delete source names */ qalDeleteSources ( s_numchannels, s_srcnums ); memset ( s_srcnums, 0, sizeof ( s_srcnums ) ); s_numchannels = 0; } QAL_Shutdown(); }