/* ================= S_AL_StopAllSounds ================= */ static void S_AL_StopAllSounds( void ) { S_AL_SrcShutup(); S_AL_StopBackgroundTrack(); S_AL_StreamDie(); }
/* ================= S_AL_Shutdown ================= */ static void S_AL_Shutdown( void ) { // Shut down everything int i; for (i = 0; i < MAX_RAW_STREAMS; i++) S_AL_StreamDie(i); S_AL_StopBackgroundTrack( ); S_AL_SrcShutdown( ); S_AL_BufferShutdown( ); qalcDestroyContext(alContext); qalcCloseDevice(alDevice); #ifdef USE_VOIP if (alCaptureDevice != NULL) { qalcCaptureStop(alCaptureDevice); qalcCaptureCloseDevice(alCaptureDevice); alCaptureDevice = NULL; Com_Printf( "OpenAL capture device closed.\n" ); } #endif for (i = 0; i < MAX_RAW_STREAMS; i++) { streamSourceHandles[i] = -1; streamPlaying[i] = qfalse; streamSources[i] = 0; } QAL_Shutdown(); }
/* ================= S_AL_StopAllSounds ================= */ static void S_AL_StopAllSounds( void ) { int i; S_AL_SrcShutup(); S_AL_StopBackgroundTrack(); for (i = 0; i < MAX_RAW_STREAMS; i++) S_AL_StreamDie(i); }
void AL_StopAllChannels( void ) { int i; channel_t *ch; ch = channels; for( i = 0; i < s_numchannels; i++, ch++ ) { if (!ch->sfx) continue; AL_StopChannel( ch ); } s_rawend = 0; S_AL_StreamDie(); }
/* ================= S_AL_Shutdown ================= */ static void S_AL_Shutdown( void ) { // Shut down everything S_AL_StreamDie( ); S_AL_StopBackgroundTrack( ); S_AL_SrcShutdown( ); S_AL_BufferShutdown( ); qalcDestroyContext(alContext); qalcCloseDevice(alDevice); QAL_Shutdown(); }
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(); }
void AL_UnqueueRawSamples() { S_AL_StreamDie(); }