Eliminado sdl_mixer. Ya va con jail_audio

This commit is contained in:
2022-10-21 18:01:33 +02:00
parent 5098ed1638
commit 3302a3f31e
2 changed files with 4 additions and 6 deletions

View File

@@ -1,8 +1,6 @@
#pragma once #pragma once
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
//#include <SDL2/SDL_image.h>
//#include <SDL2/SDL_mixer.h>
#ifndef GLOBALS_H #ifndef GLOBALS_H
#define GLOBALS_H #define GLOBALS_H

View File

@@ -73,11 +73,8 @@ bool init()
// Indicador de inicialización // Indicador de inicialización
bool success = true; bool success = true;
// Inicializa JailAudio
JA_Init(44100, AUDIO_S16, 2);
// Inicializa SDL // 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()); printf("SDL could not initialize! SDL Error: %s\n", SDL_GetError());
success = false; success = false;
@@ -117,6 +114,9 @@ bool init()
} }
} }
// Inicializa JailAudio
JA_Init(44100, AUDIO_S16, 2);
return success; return success;
} }