Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8d4f0062 authored by Phil Burk's avatar Phil Burk
Browse files

aaudio: write if there is room

Go ahead and write the data to the buffer if there is room,
even if it exceeds the setBufferSizeInFrames().

There is no point of holding it in the application buffer.
By making the data available to the DSP we can reduce glitches
or reduce latency.

Because this offers better glitch protection, we can allow
setBufferSizeInFrames() to accept a buffer size of zero.
This will provide the lowest possible latency.

Test: OboeTester glitch test
Change-Id: Ie706867c5dd57c29b4393c806cd51ae09198873e
parent 1865ec9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment