Put SetTargetFPS(30) before while (!WindowShouldClose()) in audio_raw_stream.c
This commit is contained in:
parent
a001eaa884
commit
33423d0e0f
|
|
@ -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…
Reference in New Issue
Block a user