summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-07-21 19:35:01 -0700
committerEric Laurent <elaurent@google.com>2011-07-21 21:00:46 -0700
commitedc15ad8fcde12dc4f642d80d077239b1532eeca (patch)
tree8ca296accb3baf0a2956d6587c611c65914ab331 /services
parenta1d92359056176b6f6646efc918e0587e3de2b6f (diff)
downloadframeworks_av-edc15ad8fcde12dc4f642d80d077239b1532eeca.zip
frameworks_av-edc15ad8fcde12dc4f642d80d077239b1532eeca.tar.gz
frameworks_av-edc15ad8fcde12dc4f642d80d077239b1532eeca.tar.bz2
Fix issue 4988574: 8 bit PCM audio playback broken.
Fixed regression in audio track control block frame size calculation introduced by commit c310dcb. Change-Id: Ia731b946ae4e43316b98d80229e3b08a696e47d6
Diffstat (limited to 'services')
-rw-r--r--services/audioflinger/AudioFlinger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 482336b..0323fe0 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -2954,7 +2954,7 @@ AudioFlinger::PlaybackThread::Track::Track(
mStreamType = streamType;
// NOTE: audio_track_cblk_t::frameSize for 8 bit PCM data is based on a sample size of
// 16 bit because data is converted to 16 bit before being stored in buffer by AudioTrack
- mCblk->frameSize = audio_is_linear_pcm(format) ? mChannelCount * audio_bytes_per_sample(format) : sizeof(uint8_t);
+ mCblk->frameSize = audio_is_linear_pcm(format) ? mChannelCount * sizeof(int16_t) : sizeof(uint8_t);
}
}