Dimacus
Member
[EDIT]
Problem Solved.
I was linking to both the normal vorbis libs AND the integer onces, probably cause a collision.
I removed ogg, vorbis and vorbis file and kept vorbisidec.
Thanks to all who helped me!
[/EDIT]
As the topics says; I'm having trouble with playing ogg files using SDL mixer.
The problem that i keep encountering is that my game keeps segfaulting after ALSA waring about an underrun after calling Mix_LoadWAV().
Gdb gives me this:
At first I tought it might be since I had some version conflicting / too old libs, but I think I rule that out now that I have tried to compile it on the Pandora and I still have the same problem.
I find it abit strange that ALSA begins to complain/warn before I try to call Mix_LoadWAV. (This is the first time i call any sound related function other than "Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 1024)").
Searching a bit dosn't cast much light on my situation either :/
Anyone have any idea of what might be causing this?
Problem Solved.
I was linking to both the normal vorbis libs AND the integer onces, probably cause a collision.
I removed ogg, vorbis and vorbis file and kept vorbisidec.
Thanks to all who helped me!
[/EDIT]
As the topics says; I'm having trouble with playing ogg files using SDL mixer.
The problem that i keep encountering is that my game keeps segfaulting after ALSA waring about an underrun after calling Mix_LoadWAV().
Gdb gives me this:
Code:
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured
[Lumina]:-> Trying to load music and effects
Breakpoint 1, soundHandler::loadMusicFromFile (this=0x501f8,
file=0x415ec "./sys/bopp.ogg", name=0x415fc "music1") at src/sound.cpp:54
54 aSound *tSfx = new aSound;
(gdb) n
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured
55 tSfx->isMusic = true;
(gdb) n
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured
56 tSfx->sound=Mix_LoadWAV(file);
(gdb) n
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured
Program received signal SIGSEGV, Segmentation fault.
0x400cdc70 in _vorbis_block_ripcord () from /usr/lib/libvorbisidec.so.1
(gdb) n
Single stepping until exit from function _vorbis_block_ripcord,
which has no line number information.
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured
[New LWP 6317]
[LWP 6317 exited]
0x400f38c4 in pthread_join () from /lib/libpthread.so.0
(gdb)
At first I tought it might be since I had some version conflicting / too old libs, but I think I rule that out now that I have tried to compile it on the Pandora and I still have the same problem.
I find it abit strange that ALSA begins to complain/warn before I try to call Mix_LoadWAV. (This is the first time i call any sound related function other than "Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 1024)").
Searching a bit dosn't cast much light on my situation either :/
Anyone have any idea of what might be causing this?