# How to sample current frame to raw buffer

**URL:** <https://qa.fmod.com/t/how-to-sample-current-frame-to-raw-buffer/15767>\
**Category:** Unity\
**Created:** [May 14, 2020, 1:27am UTC](https://qa.fmod.com/t/how-to-sample-current-frame-to-raw-buffer/15767 "2020-05-14T01:27:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtsiknis](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@dtsiknis](https://qa.fmod.com/u/dtsiknis)\
**Post date:** [May 14, 2020, 1:27am UTC](https://qa.fmod.com/t/how-to-sample-current-frame-to-raw-buffer/15767/1 "2020-05-14T01:27:56Z")

</div>

Is there an API call in the Unity integration (v 1.10) to sample the audio output at the current frame? This would be used to populate a float buffer that can be passed to Unity’s AudioRenderer.Render call. The purpose here is to connect FMOD audio output to UnityRecorder.

Thanks

Dinos

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [May 22, 2020, 5:03am UTC](https://qa.fmod.com/t/how-to-sample-current-frame-to-raw-buffer/15767/2 "2020-05-22T05:03:20Z")

</div>

There isn’t a direct API you can call to get this, the best way to do this would be to create a custom DSP that you can use to access the information.
