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

Commit 8908d616 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change Ib904c2a4 into eclair-mr2

* changes:
  Remove old hack A/V sync hack that is no longer needed.
parents c297fccf 1d711f67
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