diff options
Diffstat (limited to 'examples/web/audio/audio_sound_loading.c')
| -rw-r--r-- | examples/web/audio/audio_sound_loading.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/web/audio/audio_sound_loading.c b/examples/web/audio/audio_sound_loading.c index 94afde5..7888025 100644 --- a/examples/web/audio/audio_sound_loading.c +++ b/examples/web/audio/audio_sound_loading.c @@ -20,11 +20,11 @@ //---------------------------------------------------------------------------------- // Global Variables Definition //---------------------------------------------------------------------------------- -int screenWidth = 800; -int screenHeight = 450; +const int screenWidth = 800; +const int screenHeight = 450; -Sound fxWav; -Sound fxOgg; +Sound fxWav = { 0 }; +Sound fxOgg = { 0 }; //---------------------------------------------------------------------------------- // Module Functions Declaration @@ -32,7 +32,7 @@ Sound fxOgg; void UpdateDrawFrame(void); // Update and Draw one frame //---------------------------------------------------------------------------------- -// Main Enry Point +// Program Main Entry Point //---------------------------------------------------------------------------------- int main(void) { @@ -44,13 +44,13 @@ int main(void) fxWav = LoadSound("resources/weird.wav"); // Load WAV audio file fxOgg = LoadSound("resources/tanatana.ogg"); // Load OGG audio file - + #if defined(PLATFORM_WEB) emscripten_set_main_loop(UpdateDrawFrame, 0, 1); #else SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- - + // Main game loop while (!WindowShouldClose()) // Detect window close button or ESC key { |
