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

Commit 7c09a0ff 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 44000eb2 b904c2a4
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line 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
// 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 */ int MediaPlayerService::AudioOutput::mMinBufferCount = 4;
/* static */ bool MediaPlayerService::AudioOutput::mIsOnEmulator = false;
/* static */ bool MediaPlayerService::AudioOutput::mIsOnEmulator = false;


@@ -1485,7 +1484,7 @@ status_t MediaPlayerService::AudioOutput::open(
    LOGV("setVolume");
    LOGV("setVolume");
    t->setVolume(mLeftVolume, mRightVolume);
    t->setVolume(mLeftVolume, mRightVolume);
    mMsecsPerFrame = 1.e3 / (float) sampleRate;
    mMsecsPerFrame = 1.e3 / (float) sampleRate;
    mLatency = t->latency() + kAudioVideoDelayMs;
    mLatency = t->latency();
    mTrack = t;
    mTrack = t;
    return NO_ERROR;
    return NO_ERROR;
}
}
+0 −2
Original line number Original line Diff line number Diff line
@@ -108,8 +108,6 @@ class MediaPlayerService : public BnMediaPlayerService
        float                   mMsecsPerFrame;
        float                   mMsecsPerFrame;
        uint32_t                mLatency;
        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 bool             mIsOnEmulator;
        static int              mMinBufferCount;  // 12 for emulator; otherwise 4
        static int              mMinBufferCount;  // 12 for emulator; otherwise 4