Eliminado sdl_mixer. Ya va con jail_audio
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user