Hello, I am writing a program that decodes Ogg Vorbis and output to the hardware. I followed the decoding examples and got the bytes ready for output. I am looking for an audio output library on Windows. So far, I tried at DirectSound but it is quite complicated and requires lots of set up. I have several questions: 1. Does Libao work on Windows? 2. And Is there a simpler audio output library? 3. The bits I get from ov_read. Are they equivalent to the .wav bits? Can I just load them to the buffer and play them like a normal .wav? A simple Ogg audio output example would be very helpful. Thanks, Phuoc Do -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis/attachments/20061012/dea7cda7/attachment.htm
Chris Harrington (Personal)
2006-Oct-12 11:56 UTC
[Vorbis] Audio Output for Ogg Vorbis Player
Phuoc Do wrote:> 1. Does Libao work on Windows?Using Bloodshed Dev-C++, at least, yes. I've not tried using it with any other development environment. You can also use SDL: http://en.wikipedia.org/wiki/Simple_DirectMedia_Layer -Chris
Phuoc Do skrev:> 2. And Is there a simpler audio output library?You could try PortAudio. Last time I used it I found it really simple to set up and use. http://www.portaudio.com/> 3. The bits I get from ov_read. Are they equivalent to the .wav > bits? Can I just load them to the buffer and play them like a normal > .wav?IIRC, yes. Put them in the sound buffer and (provided you set it up correctly) it'll sound just right. Oscar