# Seeking micro stuttering with FFMpeg

**URL:** <https://qa.fmod.com/t/seeking-micro-stuttering-with-ffmpeg/19724>\
**Category:** FMOD Engine\
**Tags:** cpp\
**Created:** [January 11, 2023, 12:50pm UTC](https://qa.fmod.com/t/seeking-micro-stuttering-with-ffmpeg/19724 "2023-01-11T12:50:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [January 17, 2023, 11:47pm UTC](https://qa.fmod.com/t/seeking-micro-stuttering-with-ffmpeg/19724/5 "2023-01-17T23:47:29Z")

</div>

Hi,

Thanks for the code snippets and link.

The root reason for the stuttering is the [ring buffer](https://soundprogramming.net/programming/creating-a-ring-buffer/) used by FMOD to output sound is not getting any new data so it will continue to play what is still in the buffer, as it is very small it sounds very harsh.

> [@defisym](#):
>
> decode buffer bigger

While this seems to solve the issue it only delays the time till you experience a stutter.

We recently created a Unity example using FMOD as the audio output which can be found here: [Is Unity's built-in audio engine FMOD Studio (FMOD 5)? - #10 by jeff\_fmod](https://qa.fmod.com/t/is-unitys-built-in-audio-engine-fmod-studio-fmod-5/18911/10).

Hope this helps!

---

_[View the full topic](https://qa.fmod.com/t/seeking-micro-stuttering-with-ffmpeg/19724)._
