diff options
| author | Asdqwe <[email protected]> | 2023-08-29 14:04:27 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-29 19:04:27 +0200 |
| commit | d047597244017ba81ab12d9fd714d001899a992e (patch) | |
| tree | 0ba83c66646a6e7dbe45072d68ed57ad2d8b1c2f /examples/audio | |
| parent | fc0d13256626e18de8fbcdefb262d8655005b561 (diff) | |
| download | raylib-d047597244017ba81ab12d9fd714d001899a992e.tar.gz raylib-d047597244017ba81ab12d9fd714d001899a992e.zip | |
Fix example/audio/audio_module_player.c help instructions and small bug (#3272)
* Fix example/audio/audio_module_player.c help instructions and small bug
* Update example/audio/audio_module_player.png screenshot
Diffstat (limited to 'examples/audio')
| -rw-r--r-- | examples/audio/audio_module_playing.c | 11 | ||||
| -rw-r--r-- | examples/audio/audio_module_playing.png | bin | 47970 -> 45137 bytes |
2 files changed, 10 insertions, 1 deletions
diff --git a/examples/audio/audio_module_playing.c b/examples/audio/audio_module_playing.c index b8482aa5..bf5530fd 100644 --- a/examples/audio/audio_module_playing.c +++ b/examples/audio/audio_module_playing.c @@ -79,6 +79,7 @@ int main(void) { StopMusicStream(music); PlayMusicStream(music); + pause = false; } // Pause/Resume music playing @@ -134,6 +135,14 @@ int main(void) DrawRectangle(20, screenHeight - 20 - 12, (int)timePlayed, 12, MAROON); DrawRectangleLines(20, screenHeight - 20 - 12, screenWidth - 40, 12, GRAY); + // Draw help instructions + DrawRectangle(20, 20, 425, 145, WHITE); + DrawRectangleLines(20, 20, 425, 145, GRAY); + DrawText("PRESS SPACE TO RESTART MUSIC", 40, 40, 20, BLACK); + DrawText("PRESS P TO PAUSE/RESUME", 40, 70, 20, BLACK); + DrawText("PRESS UP/DOWN TO CHANGE SPEED", 40, 100, 20, BLACK); + DrawText(TextFormat("SPEED: %f", pitch), 40, 130, 20, MAROON); + EndDrawing(); //---------------------------------------------------------------------------------- } @@ -148,4 +157,4 @@ int main(void) //-------------------------------------------------------------------------------------- return 0; -}
\ No newline at end of file +} diff --git a/examples/audio/audio_module_playing.png b/examples/audio/audio_module_playing.png Binary files differindex 8bde9879..63003e04 100644 --- a/examples/audio/audio_module_playing.png +++ b/examples/audio/audio_module_playing.png |
