Fix an issue where the timestamp provided by WAVExtractor does not start with 0

Change-Id: Ie8eb86e26f026c07a3c3be43e35027b19de4a2c3
This commit is contained in:
James Dong
2011-03-15 09:32:53 -07:00
parent aa88f3bef7
commit 005de48cfb

View File

@@ -353,8 +353,6 @@ status_t WAVSource::read(
return ERROR_END_OF_STREAM;
}
mCurrentPos += n;
buffer->set_range(0, n);
if (mWaveFormat == WAVE_FORMAT_PCM) {
@@ -406,6 +404,7 @@ status_t WAVSource::read(
/ (mNumChannels * bytesPerSample) / mSampleRate);
buffer->meta_data()->setInt32(kKeyIsSyncFrame, 1);
mCurrentPos += n;
*out = buffer;