瀏覽代碼

loopwave: Use SDL_ResumeAudioStreamDevice.

...instead of the more-wordy:

`SDL_ResumeAudioDevice(SDL_GetAudioStreamDevice(stream));`
Ryan C. Gordon 1 年之前
父節點
當前提交
0367f1af19
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/loopwave.c

+ 1 - 1
test/loopwave.c

@@ -114,7 +114,7 @@ int SDL_AppInit(void **appstate, int argc, char *argv[])
         SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't create audio stream: %s\n", SDL_GetError());
         return SDL_APP_FAILURE;
     }
-    SDL_ResumeAudioDevice(SDL_GetAudioStreamDevice(stream));
+    SDL_ResumeAudioStreamDevice(stream);
 
     return SDL_APP_CONTINUE;
 }