瀏覽代碼

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

pull/5638/head
dan-hoang 3 天之前
committed by GitHub
父節點
當前提交
cd101ab3cf
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      examples/audio/audio_raw_stream_callback.c

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

@ -56,7 +56,6 @@ int main(void)
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [audio] example - raw stream callback");
SetTargetFPS(30);
InitAudioDevice();
@ -72,6 +71,7 @@ int main(void)
// Configure it so AudioStreamCallback is called whenever stream is out of samples
SetAudioStreamCallback(stream, AudioStreamCallback);
SetTargetFPS(30);
//--------------------------------------------------------------------------------------
// Main game loop

Loading…
取消
儲存