Use MID instead of OGG
This commit is contained in:
parent
03083fecb7
commit
9b68b77b8d
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
#include "../includes/audio.h"
|
||||
|
||||
void initialisationMusique(Mix_Music *musique, const char *filename) {
|
||||
Mix_Init(MIX_INIT_OGG);
|
||||
Mix_Init(MIX_INIT_MID);
|
||||
Mix_OpenAudio(44100, AUDIO_S16LSB, 2, 1024);
|
||||
musique = Mix_LoadMUS(filename);
|
||||
|
||||
|
|
2
window.c
2
window.c
|
@ -28,7 +28,7 @@ int main(int argc, char *argv[]) {
|
|||
{ 0, NULL, NULL, NULL }
|
||||
};
|
||||
|
||||
initialisationMusique(ambiance, "audio/ambiance.ogg");
|
||||
initialisationMusique(ambiance, "audio/ambiance.mid");
|
||||
|
||||
gl4dhInit(animations, dimensions[0], dimensions[1], NULL);
|
||||
atexit(fermeture);
|
||||
|
|
Reference in a new issue