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;
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user