Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

johnnyBravo

OpenAL and Ogg Vorbis

This topic is 5097 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

Hi so far I know OpenAL lets you play wavs for sound effects, aswell it has a listener etc and can play ogg vorbis if setup with it. But what im wondering can Ogg Vorbis do sound effects just aswell as openal?, As i want to play sound effects and music in my game(resonably compressed music) thanks

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by johnnyBravo
But what im wondering can Ogg Vorbis do sound effects just aswell as openal?, As i want to play sound effects and music in my game(resonably compressed music)



Ogg Vorbis is not a audio library in that it plays audio data. Rather it is an audio encoding/streaming technology.

Ogg Vorbis cannot be used on it''s lonesome; you''ll have to load the ogg encoded file, decode it, then send it to OpenAL. Then you can play it in your game.

Share this post


Link to post
Share on other sites
MikeMJH - is right. Buth he hasen''t anwserd your question.
Yes you can!
You yust need to decode a file in to SounBuffer add efects & play.

Share this post


Link to post
Share on other sites
In our game, we use OpenAL with SDL (and OpenGL). OpenAL to play .wav files and Ogg/Vorbis to play .ogg files. Works great =)

The game is open source, you can check it out here. Check out the AudioCore.

}-- Programmer/Gamer/Dreamer --{
I didn't choose to code, coding choose me.

[edited by - seriema on June 9, 2004 8:37:46 PM]

Share this post


Link to post
Share on other sites
Ogg Vorbis isn''t something you use to play audio -- it''s the audio itself. Think of it as a smaller WAV (or better MP3, if you will). Whatever you can do on WAV with OpenAL, you can do on Vorbis, because you just load the Vorbis data and put it in the exact same buffer that you put the WAV file.


-- Fyhuang, president, Altitude Technologies

Altitude Technologies: http://www.hytetech.com/altitude
Altitude Forums: http://s8.invisionfree.com/Altitude_Forums/

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!