MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / ~SDLRawBackend

Method ~SDLRawBackend

framework/sound/sdlraw_backend.cpp:370–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368 }
369
370 ~SDLRawBackend() override
371 {
372 // Lock the device and stop any outstanding music threads to ensure everything is dead
373 // before destroying the device
374 SDL_LockAudioDevice(devID);
375 SDL_PauseAudioDevice(devID, 1);
376 this->stopMusic();
377 SDL_UnlockAudioDevice(devID);
378 SDL_CloseAudioDevice(devID);
379 SDL_QuitSubSystem(SDL_INIT_AUDIO);
380 }
381
382 virtual const AudioFormat &getPreferredFormat() { return preferred_format; }
383

Callers

nothing calls this directly

Calls 1

stopMusicMethod · 0.95

Tested by

no test coverage detected