Sfoglia il codice sorgente

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

pull/5637/head
dan-hoang 3 giorni fa
parent
commit
33423d0e0f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      examples/audio/audio_raw_stream.c

+ 1
- 1
examples/audio/audio_raw_stream.c Vedi File

@ -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

Caricamento…
Annulla
Salva