瀏覽代碼

Put SetTargetFPS(30) before while (!WindowShouldClose()) in audio_raw_stream.c

pull/5637/head
dan-hoang 3 天之前
父節點
當前提交
33423d0e0f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      examples/audio/audio_raw_stream.c

+ 1
- 1
examples/audio/audio_raw_stream.c 查看文件

@ -32,7 +32,6 @@ int main(void)
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [audio] example - raw stream");
SetTargetFPS(30);
InitAudioDevice();
@ -51,6 +50,7 @@ int main(void)
int sineIndex = 0;
double sineStartTime = 0.0;
SetTargetFPS(30);
//--------------------------------------------------------------------------------------
// Main game loop

Loading…
取消
儲存