# OutputRingBuffer::read : Insufficient buffer size detected, requested 45056 bytes, buffer size is 32768 bytes

**URL:** <https://qa.fmod.com/t/outputringbuffer-read-insufficient-buffer-size-detected-requested-45056-bytes-buffer-size-is-32768-bytes/17511>\
**Category:** Unity\
**Tags:** unity\
**Created:** [August 2, 2021, 4:07am UTC](https://qa.fmod.com/t/outputringbuffer-read-insufficient-buffer-size-detected-requested-45056-bytes-buffer-size-is-32768-bytes/17511 "2021-08-02T04:07:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xushunwang](https://avatars.discourse-cdn.com/v4/letter/x/e495f1/32.png) [@xushunwang](https://qa.fmod.com/u/xushunwang)\
**Post date:** [August 2, 2021, 4:07am UTC](https://qa.fmod.com/t/outputringbuffer-read-insufficient-buffer-size-detected-requested-45056-bytes-buffer-size-is-32768-bytes/17511/1 "2021-08-02T04:07:25Z")

</div>

After I upgrade fmod from 2.00.12 to 2.00.13.

The sound became not fluent ,there are a lot of make-and-breaks. And it logs the warning.

Even I upgrade to 2.00.19,the problem still exist.

My device : HUAWEI Mate 10

I find there is：  
Unity - GameCore - Add resonance audio support.

GameCore - Added support for decoding Opus compressed FSBs / Banks using platform hardware acceleration on Scarlett devices. This is a preview release of this feature, please report any bugs found directly to FMOD support email.

in release note.

So,I want to close thease feature to test if they cause the problem.How can i do?

---

<div class="post-metadata">

**Author:** ![xushunwang](https://avatars.discourse-cdn.com/v4/letter/x/e495f1/32.png) [@xushunwang](https://qa.fmod.com/u/xushunwang)\
**Post date:** [August 2, 2021, 6:37am UTC](https://qa.fmod.com/t/outputringbuffer-read-insufficient-buffer-size-detected-requested-45056-bytes-buffer-size-is-32768-bytes/17511/2 "2021-08-02T06:37:24Z")

</div>

I find someone have the same problem :

> [@Buffer starvation with FMOD 2 on Huawei Android Phones when screen is locked](https://qa.fmod.com/t/buffer-starvation-with-fmod-2-on-huawei-android-phones-when-screen-is-locked/16513):
>
> Hello, I have found a bug that seems only reproducible on certain Huawei Android phones where a Buffer starvation occurs when the screen is locked. Here is an example of the bug happening in the play\_sound sample app taken from FMOD Engine 2.01.06, with the loop enabled on drumloop.wav: [https://www.youtube.com/watch?v=hmHOc09Buig](https://www.youtube.com/watch?v=hmHOc09Buig) When the sound stops, I see these warnings in the logs: 2020-12-03 11:31:56.914 7424-7552/org.fmod.example W/fmod: OutputRingBuffer::read : Buffer…

But he use 2.01.06.

I don’t know if you fix the bug in 2.01.07 or later.Can you fix it in 2.00 later?

---

<div class="post-metadata">

**Author:** ![tristanjl](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tristanjl/32/261_2.png) [@tristanjl](https://qa.fmod.com/u/tristanjl)\
**Post date:** [August 2, 2021, 11:22pm UTC](https://qa.fmod.com/t/outputringbuffer-read-insufficient-buffer-size-detected-requested-45056-bytes-buffer-size-is-32768-bytes/17511/3 "2021-08-02T23:22:31Z")

</div>

Hi [xushunwang](https://qa.fmod.com/u/xushunwang)

The issue you linked to only affected the device while the screen was locked - is that what you are encountering?

The relevant part of the release notes for 2.00.13 would be:

- Core API - Android - Reduce popping encountered on certain handsets by dynamically adjusting latency.
- Core API - Android - Fix issue where regular gaps in audio were encountered on handsets with using very large burst sizes.
- Core API - Android - Fix issue where System::mixerSuspend would fail on certain handsets.

Its surprising that the audio became worse with 2.00.13. If you can’t upgrade higher, you may want to try [https://fmod.com/resources/documentation-api?version=2.0&page=core-api-system.html#system\_setoutput](https://fmod.com/resources/documentation-api?version=2.0&page=core-api-system.html#system_setoutput) setting to FMOD\_OUTPUTTYPE\_OPENSL

If you could send us the log with the warnings, that will also help us to know what is happening.

---

<div class="post-metadata">

**Author:** ![xushunwang](https://avatars.discourse-cdn.com/v4/letter/x/e495f1/32.png) [@xushunwang](https://qa.fmod.com/u/xushunwang)\
**Post date:** [August 3, 2021, 4:07am UTC](https://qa.fmod.com/t/outputringbuffer-read-insufficient-buffer-size-detected-requested-45056-bytes-buffer-size-is-32768-bytes/17511/5 "2021-08-03T04:07:18Z")

</div>

I mean we have the same log ：OutputRingBuffer::read xxxxx.But I don’t know if we have the same reason.

And if I change the OutPutType to OPENSL,it will be fine.

Here is the log when I playing the sound in my phone:

[fmodtest.log](https://qa.fmod.com/uploads/short-url/wcy9jQSX5I2iwarkODeXlUHh9rT.log) (111.9 KB)

I have send the example to [support@fmod.com](mailto:support@fmod.com) with title “OutputRingBuffer bug example”.

---

<div class="post-metadata">

**Author:** ![tristanjl](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tristanjl/32/261_2.png) [@tristanjl](https://qa.fmod.com/u/tristanjl)\
**Post date:** [August 4, 2021, 5:32am UTC](https://qa.fmod.com/t/outputringbuffer-read-insufficient-buffer-size-detected-requested-45056-bytes-buffer-size-is-32768-bytes/17511/6 "2021-08-04T05:32:10Z")

</div>

Hi xushunwang,

Thanks for the log - we have an idea of what might be happening. We have a fix that we are looking at, hopefully it will be available for the next release.
