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

Skip to content
Commit 51dde7a6 authored by Zhou Song's avatar Zhou Song Committed by Steve Kondik
Browse files

AudioMixer: fill 0s at right place when no more buffers available

When mixer format is PCM_FLOAT and only a partial buffer available
at the end of playback, 0s can be filled at the beginning of the
mixer buffer which will overwrite the copied buffers, then glitch
is heard.

This is because OutPointer is not updated and the pointer always keeps
the start position of mixer buffer when mixer format is PCM_FLOAT.

Assign the value of 'fout' to 'out' to make sure 'out' holds the
current copy position.

CRs-Fixed: 872775

Change-Id: I50504c5a02eb0c69abfc9b047792b0f6f85b9ce8
parent c69b0a34
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