Browse Source

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

pull/5638/head
dan-hoang 3 days ago
committed by GitHub
parent
commit
cd101ab3cf
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/audio/audio_raw_stream_callback.c

+ 1
- 1
examples/audio/audio_raw_stream_callback.c View File

@ -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…
Cancel
Save