mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-26 14:33:01 +00:00
parent
a08380182d
commit
231bece848
2 changed files with 4 additions and 1 deletions
|
@ -46,7 +46,9 @@ void* TAAudioSDL::getContext() {
|
|||
bool TAAudioSDL::quit() {
|
||||
if (!initialized) return false;
|
||||
|
||||
SDL_CloseAudioDevice(ai);
|
||||
if (ai!=0) {
|
||||
SDL_CloseAudioDevice(ai);
|
||||
}
|
||||
|
||||
if (running) {
|
||||
running=false;
|
||||
|
|
|
@ -34,5 +34,6 @@ class TAAudioSDL: public TAAudio {
|
|||
std::vector<String> listAudioDevices();
|
||||
bool init(TAAudioDesc& request, TAAudioDesc& response);
|
||||
TAAudioSDL():
|
||||
ai(0),
|
||||
audioSysStarted(false) {}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue