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

Commit 610b650e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "audiopolicy: use deep buffer output by default for music streams"

parents d710bd25 47b26cd8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1370,7 +1370,12 @@ audio_io_handle_t AudioPolicyManagerCustom::getOutputForDevice(
    // only allow deep buffering for music stream type
    if (stream != AUDIO_STREAM_MUSIC) {
        flags = (audio_output_flags_t)(flags &~AUDIO_OUTPUT_FLAG_DEEP_BUFFER);
    } else if (/* stream == AUDIO_STREAM_MUSIC && */
            flags == AUDIO_OUTPUT_FLAG_NONE &&
            property_get_bool("audio.deep_buffer.media", false /* default_value */)) {
        flags = (audio_output_flags_t)AUDIO_OUTPUT_FLAG_DEEP_BUFFER;
    }

    if (stream == AUDIO_STREAM_TTS) {
        flags = AUDIO_OUTPUT_FLAG_TTS;
    }