View Single Post
Old Apr 7th, 2007, 3:14 PM   #3
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
I think you are taking the wrong approach to this... writing the data to a file and having that file stream back to the audio player. You might manage to make it work, but at the cost of processing power, and what happens to streams that keep on going, the data file can not be easily trimmed.

You need to either everload the classes/functions responsible for stream the data from a file to use a socket escriptord and handle reading the data from the socket instead of the file, or you have to find a way to send data buffers into FMOD and write the data directly into the buffer as it is being received. Typically these buffers are cyclical allowing you to easily create a data stream (this is how Direct Sound generally works).

I don't know FMOD very well, so that is really all the help I can give you, and I don't know how well FMOD will handle doing it the right way.
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote