Game Development Community

Streaming Audio (almost!)

by Kurtis Seebaldt · in Torque Game Engine · 04/15/2002 (10:50 pm) · 0 replies

I've been working on adding streaming audio (both WAV and Ogg Vorbis) to Torque. I've got the whole framework finished up and am trying to fix bugs.

I created an abstract AudioStreamSource class that can be subclassed for specific stream types. So far I have a WavStreamSource and a VorbisStreamSource. To use it, I modified the AudioDescription datablock to add a new flag isStreaming. Set it to true and it will stream.

I still have some bugs to work out. The audio plays back at the wrong speed (about 1/8 the regular speed) and there are a few intermitant crash bugs I need to work out.

I was hoping some of you Torque experts could help me test it out.

Thanks in advance!!

www.flamultimedia.com/audioStreaming.zip