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

Commit 7de0d15d authored by Andy Hung's avatar Andy Hung Committed by Gerrit Code Review
Browse files

Merge "Support direct PCM track latency reporting"

parents b6838ad8 7b036916
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -183,6 +183,12 @@ public:
       }
       }
    }
    }


    static bool checkServerLatencySupported(
            audio_format_t format, audio_output_flags_t flags) {
        return audio_is_linear_pcm(format)
                && (flags & AUDIO_OUTPUT_FLAG_HW_AV_SYNC) == 0;
    }

    audio_output_flags_t getOutputFlags() const { return mFlags; }
    audio_output_flags_t getOutputFlags() const { return mFlags; }
    float getSpeed() const { return mSpeed; }
    float getSpeed() const { return mSpeed; }
protected:
protected:
+1 −2
Original line number Original line Diff line number Diff line
@@ -713,8 +713,7 @@ AudioFlinger::PlaybackThread::Track::Track(
        thread->mFastTrackAvailMask &= ~(1 << i);
        thread->mFastTrackAvailMask &= ~(1 << i);
    }
    }


    mServerLatencySupported = thread->type() == ThreadBase::MIXER
    mServerLatencySupported = checkServerLatencySupported(format, flags);
            || thread->type() == ThreadBase::DUPLICATING;
#ifdef TEE_SINK
#ifdef TEE_SINK
    mTee.setId(std::string("_") + std::to_string(mThreadIoHandle)
    mTee.setId(std::string("_") + std::to_string(mThreadIoHandle)
            + "_" + std::to_string(mId) + "_T");
            + "_" + std::to_string(mId) + "_T");