Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL_Mixer: Ogg's not working? #29

Closed
GoogleCodeExporter opened this issue Jun 19, 2015 · 5 comments
Closed

SDL_Mixer: Ogg's not working? #29

GoogleCodeExporter opened this issue Jun 19, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

Fixed r82

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

  • Changed state: Completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant