Excuse me, I've tryied to write a simple music player with SDL_mixer, but when I've try to compile the project I've a lot of errors, what lib I've to include?
undefined reference to `SDL_LoadWAV_RW'
undefined reference to `SDL_FreeWAV'
undefined reference to `SDL_FreeWAV'
undefined reference to `SDL_MixAudio'
undefined reference to `SDL_MixAudio'
undefined reference to `ov_time_seek'
undefined reference to `ov_clear'
undefined reference to `SDL_MixAudio'
undefined reference to `ov_read'
undefined reference to `ov_info'
undefined reference to `ov_open_callbacks'
undefined reference to `ov_open'
undefined reference to `SDL_MixAudio'
undefined reference to `ov_open_callbacks'
undefined reference to `ov_info'
undefined reference to `ov_pcm_total'
undefined reference to `ov_read'
undefined reference to `ov_read'
undefined reference to `ov_clear'
Excuse me, I've a new error :(...
I've tryied to load a simple MP3 but I've have ever error "Module format not recognized"...
But the file is not corrupted, if I try to load it with another MP3 player the file is correctly loaded!!!
darkness wrote:Excuse me, I've a new error :(...
I've tryied to load a simple MP3 but I've have ever error "Module format not recognized"...
But the file is not corrupted, if I try to load it with another MP3 player the file is correctly loaded!!!
SDL_Mixer doesn't recognize mp3 unless you compile it along with SMPEG, which requires your app to be C++ as SMPEG is C++. So you either use C++ for ALL your SDL apps, or use something other than mixer to play mp3.