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

Commit a902c82f authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "AudioFlinger: Enable spatializer timestamps" into tm-dev

parents 3bd124eb 4b7f54f7
Loading
Loading
Loading
Loading
+2 −8
Original line number Original line Diff line number Diff line
@@ -978,7 +978,8 @@ void AudioFlinger::ThreadBase::dumpBase_l(int fd, const Vector<String16>& args _
            || mType == MIXER
            || mType == MIXER
            || mType == DUPLICATING
            || mType == DUPLICATING
            || mType == DIRECT
            || mType == DIRECT
            || mType == OFFLOAD) {
            || mType == OFFLOAD
            || mType == SPATIALIZER) {
        dprintf(fd, "  Timestamp stats: %s\n", mTimestampVerifier.toString().c_str());
        dprintf(fd, "  Timestamp stats: %s\n", mTimestampVerifier.toString().c_str());
        dprintf(fd, "  Timestamp corrected: %s\n", isTimestampCorrectionEnabled() ? "yes" : "no");
        dprintf(fd, "  Timestamp corrected: %s\n", isTimestampCorrectionEnabled() ? "yes" : "no");
    }
    }
@@ -4295,13 +4296,6 @@ bool AudioFlinger::PlaybackThread::threadLoop()


void AudioFlinger::PlaybackThread::collectTimestamps_l()
void AudioFlinger::PlaybackThread::collectTimestamps_l()
{
{
    // Collect timestamp statistics for the Playback Thread types that support it.
    if (mType != MIXER
            && mType != DUPLICATING
            && mType != DIRECT
            && mType != OFFLOAD) {
        return;
    }
    if (mStandby) {
    if (mStandby) {
        mTimestampVerifier.discontinuity(discontinuityForStandbyOrFlush());
        mTimestampVerifier.discontinuity(discontinuityForStandbyOrFlush());
        return;
        return;