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

Commit 005de48c authored by James Dong's avatar James Dong
Browse files

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

Change-Id: Ie8eb86e26f026c07a3c3be43e35027b19de4a2c3
parent aa88f3be
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;