I am trying to load and play once a .ogg file with SDL. This is the code:
It doesn't work, it says collect2:ld returned 1 exit statusQt Code:
#include <SDL/SDL.h> #include <SDL/SDL_mixer.h> int main() { Mix_Music *music = NULL; music = Mix_LoadMUS("music.ogg"); Mix_PlayMusic(music, 0); }To copy to clipboard, switch view to plain text mode
I would very happy ig somebody could fix it for me becauz i've searched the whole web for finding a simple example of opening a playing a file with SDL, but I would always ask if there is any Qt library for playing audio files...
Bookmarks