浏览代码

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

正在加载...
取消
保存