diff options
author | Glenn Kasten <gkasten@google.com> | 2012-11-12 14:32:06 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-11-12 14:32:06 -0800 |
commit | bc0f6b92bba33ca9c2e76f2a520d290f055da6b2 (patch) | |
tree | 680eed54d506a181ba8a6844e93d32a9a69747e4 | |
parent | e35a582d02586cb43ad9e344138b4edad62868b3 (diff) | |
download | frameworks_av-bc0f6b92bba33ca9c2e76f2a520d290f055da6b2.zip frameworks_av-bc0f6b92bba33ca9c2e76f2a520d290f055da6b2.tar.gz frameworks_av-bc0f6b92bba33ca9c2e76f2a520d290f055da6b2.tar.bz2 |
Fix regression for AudioTrack::write() 8-bit PCM
Bug: 7526532
Change-Id: I8ddd1f0e9d035b54401788dcc422591281dcd97a
-rw-r--r-- | media/libmedia/AudioTrack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/AudioTrack.cpp b/media/libmedia/AudioTrack.cpp index 468bd29..26cf877 100644 --- a/media/libmedia/AudioTrack.cpp +++ b/media/libmedia/AudioTrack.cpp @@ -1104,8 +1104,8 @@ ssize_t AudioTrack::write(const void* buffer, size_t userSize) } else { toWrite = audioBuffer.size; memcpy(audioBuffer.i8, src, toWrite); - src += toWrite; } + src += toWrite; userSize -= toWrite; written += toWrite; |