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

Commit a14f4068 authored by Danny Fernandes's avatar Danny Fernandes Committed by Android (Google) Code Review
Browse files

Merge "Fixed issue 3385135: change min audio buffer count to match awesome player"

parents 5bc7fb40 d196f1c3
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -304,7 +304,7 @@ VideoEditorPlayer::VeAudioOutput::~VeAudioOutput() {
void VideoEditorPlayer::VeAudioOutput::setMinBufferCount() {
void VideoEditorPlayer::VeAudioOutput::setMinBufferCount() {


    mIsOnEmulator = false;
    mIsOnEmulator = false;
    mMinBufferCount =12;
    mMinBufferCount = 4;
}
}


bool VideoEditorPlayer::VeAudioOutput::isOnEmulator() {
bool VideoEditorPlayer::VeAudioOutput::isOnEmulator() {
@@ -368,7 +368,7 @@ status_t VideoEditorPlayer::VeAudioOutput::open(


    // Check argument "bufferCount" against the mininum buffer count
    // Check argument "bufferCount" against the mininum buffer count
    if (bufferCount < mMinBufferCount) {
    if (bufferCount < mMinBufferCount) {
        LOGD("bufferCount (%d) is too small and increased to %d",
        LOGV("bufferCount (%d) is too small and increased to %d",
            bufferCount, mMinBufferCount);
            bufferCount, mMinBufferCount);
        bufferCount = mMinBufferCount;
        bufferCount = mMinBufferCount;