Write sample data into stream

(Cosmy) #1

Hello there,

I am trying to migrate from BASS to FMOD however I can’t find the equivalent of BASS_StreamPutData which lets you append some sample data to an opened stream.

What I’d like to do is to record voice from microphone using steamworks APIs and then play the stream using FMOD by appending the received samples through the network.

(Brett Paterson) #2

I would recommend you look at the user_created_sound example.
You don’t push or ‘put’ sound into a stream, fmod has a callback which requests stream data from you in user definable chunks if it is playing in realtime.