Use MID instead of OGG

This commit is contained in:
Mylloon 2022-05-19 02:35:29 +02:00
parent 03083fecb7
commit 9b68b77b8d
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
#include "../includes/audio.h" #include "../includes/audio.h"
void initialisationMusique(Mix_Music *musique, const char *filename) { 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); Mix_OpenAudio(44100, AUDIO_S16LSB, 2, 1024);
musique = Mix_LoadMUS(filename); musique = Mix_LoadMUS(filename);

View file

@ -28,7 +28,7 @@ int main(int argc, char *argv[]) {
{ 0, NULL, NULL, NULL } { 0, NULL, NULL, NULL }
}; };
initialisationMusique(ambiance, "audio/ambiance.ogg"); initialisationMusique(ambiance, "audio/ambiance.mid");
gl4dhInit(animations, dimensions[0], dimensions[1], NULL); gl4dhInit(animations, dimensions[0], dimensions[1], NULL);
atexit(fermeture); atexit(fermeture);