diff --git a/source/globals.h b/source/globals.h index 716352a..a670f71 100644 --- a/source/globals.h +++ b/source/globals.h @@ -1,8 +1,6 @@ #pragma once #include -//#include -//#include #ifndef GLOBALS_H #define GLOBALS_H diff --git a/source/main.cpp b/source/main.cpp index 70c53e8..f0cd6cb 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -73,11 +73,8 @@ bool init() // Indicador de inicialización bool success = true; - // Inicializa JailAudio - JA_Init(44100, AUDIO_S16, 2); - // Inicializa SDL - if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_AUDIO) < 0) { printf("SDL could not initialize! SDL Error: %s\n", SDL_GetError()); success = false; @@ -117,6 +114,9 @@ bool init() } } + // Inicializa JailAudio + JA_Init(44100, AUDIO_S16, 2); + return success; }