MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / Sound_DeInit

Function Sound_DeInit

TombEngine/Sound/sound.cpp:1076–1087  ·  view source on GitHub ↗

Stop all sounds and streams, if any, unplug all channels from the mixer and unload BASS engine. Must be called on engine quit.

Source from the content-addressed store, hash-verified

1074// Stop all sounds and streams, if any, unplug all channels from the mixer and unload BASS engine.
1075// Must be called on engine quit.
1076void Sound_DeInit()
1077{
1078 if (!g_Configuration.EnableSound)
1079 return;
1080
1081 TENLog("Shutting down BASS...", LogLevel::Info);
1082 BASS_Free();
1083
1084 // HACK: Manually unload previously loaded ADPCM codec.
1085 if (ADPCMLibrary != NULL)
1086 FreeLibrary(ADPCMLibrary);
1087}
1088
1089const char* Sound_GetBassErrorString(int errorCode)
1090{

Callers 1

DeInitializeFunction · 0.85

Calls 1

TENLogFunction · 0.85

Tested by

no test coverage detected