• Advertisement
Sign in to follow this  

Library for playing Vorbis files with SDL2?

This topic is 1917 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What is a good library to play Vorbis data with SDL2? Must be in C and free software. I tried vorbisfile but I'm hating it (and I'm having some odd error I can't seem to be able to track down). I thought of SDL_mixer but I can't find the SDL2 version (was that library ported?). Is there anything else?

What I need:

  • I should be able to make it use PhysicsFS somehow
  • I'm just uploading the entire sound into memory (this is for sound effects)
  • I don't care about bitstreams past the first one (for now at least)

    Any suggestions?

Share this post


Link to post
Share on other sites
Advertisement
I don't know about PhysicsFS, but I've used stb_vorbis to decode a vorbis file kept in memory. It's written in C and in the public domain.

EDIT: I see that now that you want to play Vorbis files, not just decode them. To that end, vorbisfile is not a replacement for SDL_Mixer, nor is stb_vorbis. For output, you can use PortAudio or OpenAL, among other things. For decoding, you can use anything--vorbisfile, SDL_Sound, stb_vorbis, or ALURE.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement