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

Commit b904c2a4 authored by Dave Sparks's avatar Dave Sparks
Browse files

Remove old hack A/V sync hack that is no longer needed.

parent b70da2bb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -202,7 +202,6 @@ extmap FILE_EXTS [] = {
};

// TODO: Find real cause of Audio/Video delay in PV framework and remove this workaround
/* static */ const uint32_t MediaPlayerService::AudioOutput::kAudioVideoDelayMs = 0;
/* static */ int MediaPlayerService::AudioOutput::mMinBufferCount = 4;
/* static */ bool MediaPlayerService::AudioOutput::mIsOnEmulator = false;

@@ -1485,7 +1484,7 @@ status_t MediaPlayerService::AudioOutput::open(
    LOGV("setVolume");
    t->setVolume(mLeftVolume, mRightVolume);
    mMsecsPerFrame = 1.e3 / (float) sampleRate;
    mLatency = t->latency() + kAudioVideoDelayMs;
    mLatency = t->latency();
    mTrack = t;
    return NO_ERROR;
}
+0 −2
Original line number Diff line number Diff line
@@ -108,8 +108,6 @@ class MediaPlayerService : public BnMediaPlayerService
        float                   mMsecsPerFrame;
        uint32_t                mLatency;

        // TODO: Find real cause of Audio/Video delay in PV framework and remove this workaround
        static const uint32_t   kAudioVideoDelayMs;
        static bool             mIsOnEmulator;
        static int              mMinBufferCount;  // 12 for emulator; otherwise 4