Stop all sounds and streams, if any, unplug all channels from the mixer and unload BASS engine. Must be called on engine quit.
| 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. |
| 1076 | void 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 | |
| 1089 | const char* Sound_GetBassErrorString(int errorCode) |
| 1090 | { |
no test coverage detected