# Write sample data into stream

**URL:** <https://qa.fmod.com/t/write-sample-data-into-stream/12373>\
**Category:** FMOD Engine\
**Created:** [March 12, 2016, 12:48am UTC](https://qa.fmod.com/t/write-sample-data-into-stream/12373 "2016-03-12T00:48:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosmy](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@cosmy](https://qa.fmod.com/u/cosmy)\
**Post date:** [March 12, 2016, 12:48am UTC](https://qa.fmod.com/t/write-sample-data-into-stream/12373/1 "2016-03-12T00:48:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [March 12, 2016, 3:20am UTC](https://qa.fmod.com/t/write-sample-data-into-stream/12373/2 "2016-03-12T03:20:41Z")

</div>

Hi,  
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.
