浏览代码

testaudio: the test framework opens an audio device at startup; close it.

Not opening a device at all would be more desirable, though.
Ryan C. Gordon 1 年之前
父节点
当前提交
1022fd6e04
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      test/testaudio.c

+ 5 - 0
test/testaudio.c

@@ -1036,6 +1036,11 @@ int main(int argc, char *argv[])
         Quit(2);
     }
 
+    if (state->audio_id) {
+        SDL_CloseAudioDevice(state->audio_id);
+        state->audio_id = 0;
+    }
+
     SetDefaultTitleBar();
 
     physdev_texture = CreateTexture("physaudiodev.bmp");