./configure --enable-music-mp3 --enable-music-mp3-mad-gpl --disable-music-mp3-smpeg --enable-music-midi --enable-music-midi-timidity --disable-music-midi-fluidsynth --disable-music-mod-modplug --enable-music-mod --enable-music-mod-mikmod --disable-music-mod-mikmod-shared --enable-music-flac=yes --disable-music-flac-shared --with-gnu-ld --disable-sdltest --libdir=/d/DevTools/Qt/5.3.0/Tools/mingw482_32/lib --includedir=/d/DevTools/Qt/5.3.0/Tools/mingw482_32/include
Mix_MusicType type=Mix_GetMusicType(play_mus);
qDebug() << QString("Music type: %1\n").arg(
type==MUS_NONE?"MUS_NONE":
type==MUS_CMD?"MUS_CMD":
type==MUS_WAV?"MUS_WAV":
/*type==MUS_MOD_MODPLUG?"MUS_MOD_MODPLUG":*/
type==MUS_MOD?"MUS_MOD":
type==MUS_MID?"MUS_MID":
type==MUS_OGG?"MUS_OGG":
type==MUS_MP3?"MUS_MP3":
type==MUS_MP3_MAD?"MUS_MP3_MAD":
type==MUS_FLAC?"MUS_FLAC":
"Unknown");
if(Mix_PlayMusic(play_mus, -1)==-1)
{
qDebug() << QString("Mix_PlayMusic: %1\n").arg(Mix_GetError());
// well, there's no music, but most games don't break without music...
}
qDebug() << QString("Music is %1").arg(Mix_PlayingMusic()==1?"Playing":"Silence");
"Music type: MUS_WAV"
"Music is Playing"
"Music type: MUS_MP3"
"Music is Playing"