dborth / sdl-wii

SDL for Wii
http://wiibrew.org/wiki/SDL_Wii
47 stars 16 forks source link

SDL_Mixer: Ogg's not working? #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've tried to play a number of 32K, 56kbps ogg's but all that comes out
from the sound is junk, like it's not decoding the data.

Here's my set up.

Mix_OpenAudio(32000, AUDIO_S16MSB, 2, 512);
Mix_AllocateChannels(16);   
...
...
if(mod = Mix_LoadMUS(path(sn)))
  Mix_PlayMusic(mod, -1);

Anyone else tried OGG's with SDL Mixer?

Original issue reported on code.google.com by iamsca...@gmail.com on 24 Oct 2009 at 6:48

GoogleCodeExporter commented 9 years ago
Actually there is no problem in your code with playing mp3/ogg/other files with 
SDL_mixer
All You need to do is to recompile library with proper flags, check your 
makefile:

DEFINES := -DGEKKO -DDEBUG_ERROR -DDEBUG_TIMERS -DDEBUG_THREADS -DDEBUG_BUILD
-DDEBUG_CONVERT -DWAV_MUSIC 
-DMOD_MUSIC -DMID_MUSIC -DUSE_TIMIDITY_MIDI -DMP3_MUSIC -DOGG_USE_TREMOR 
-DOGG_MUSIC

Original comment by t.slappy on 26 Oct 2009 at 9:46

GoogleCodeExporter commented 9 years ago
Here's my def's but I don't think it's that.  I would not expect to hear 
anything or
possibly a link error if the code was never compiled into SDL Mixer.

-DCMD_MUSIC -DGEKKO -DDEBUG_ERROR -DDEBUG_TIMERS -DDEBUG_THREADS -DDEBUG_BUILD
-DDEBUG_CONVERT -DWAV_MUSIC -DMOD_MUSIC -DMID_MUSIC -DUSE_TIMIDITY_MIDI 
-DMP3_MUSIC
-DOGG_USE_TREMOR -DOGG_MUSIC

Original comment by iamsca...@gmail.com on 26 Oct 2009 at 5:56

GoogleCodeExporter commented 9 years ago
Fixed r82

Original comment by iamsca...@gmail.com on 4 Nov 2009 at 6:50

GoogleCodeExporter commented 9 years ago
Thanks a lot for fixing this!
I was really needing this for a port I'm working on.

Original comment by joseba...@gmail.com on 4 Nov 2009 at 10:44

GoogleCodeExporter commented 9 years ago

Original comment by dborth@gmail.com on 7 Dec 2009 at 6:55