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

This commit is contained in:
dan-hoang 2026-03-11 16:45:07 -07:00
parent a001eaa884
commit 33423d0e0f

View File

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