Library for playing Vorbis files with SDL2?

Started by
0 comments, last by nox_pp 11 years, 6 months ago
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?
Don't pay much attention to "the hedgehog" in my nick, it's just because "Sik" was already taken =/ By the way, Sik is pronounced like seek, not like sick.
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.

Between Scylla and Charybdis: First Look <-- The game I'm working on

Object-Oriented Programming Sucks <-- The kind of thing I say

This topic is closed to new replies.

Advertisement