Game Development Community

Streaming Audio

by Aaron E · in Torque Game Engine · 02/08/2006 (9:51 am) · 5 replies

Hello all,

I've been wanting to get streaming audio into my app for quite a while but haven't been able to figure it out. I've checked out a few promising resources, like this one www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2556
but unfortunately, I've encountered outdated information and bad file links.

So I'm wondering how I should proceed.

Any help with this will be greatly appreciated.

Thanks in advance

#1
02/09/2006 (6:38 am)
That has been a part of the engine for ages. Just use isStreaming in your audioProfiles. But I think it only works with OGGs (never tested streaming WAVs).

datablock AudioProfile(someAudioProfile)
{   
   filename = "~/data/Music/someMusic.ogg";
   description = "SomeAudioDescription";
   [b]isStreaming = true;[/b]
};
#2
02/09/2006 (11:58 am)
Streaming WAV files should work, too.
#3
02/09/2006 (11:43 pm)
@Manoel

Thank you for the script. I'm very lost when it comes to streaming media. Hopefully I can get this to work. I didn't mention it earlier, but I'm trying to get a one-to-many live audio streaming capability into my app. Basically, I want all the client machines to be able to hear the same live streaming content -- all through Torque. I'll try this out and see what if I can get it to work the way I'm imagining it.

@Kurtis

Thanks for responding. If I can ask, what software and techniques do you use for generating your streamed content? As I mentioned to Manoel, I'm clueless about this topic.
#4
02/10/2006 (12:42 pm)
You mean streaming as in streaming through a network? I don't know of any resource that implements that.

The "streaming" in Torque is HD/CD-ROM streaming, where it reads small bits of the audio file into the RAM instead of loading the whole thing at once.
#5
02/11/2006 (4:02 am)
Manoel,

Thank you for clarifying this for me. I guess I'm even more clueless than I originally thought. :(

I wanted to do live audio feeds into my Torque apps. And then, later, I wanted to adapt it to allow live video feeds as well.

I'm guessing that I will need to look for a TGE VoIP solution to get live audio feeds working. I don't have any idea how to do the video though.

Anyway, thank you again