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

Commit a3f34461 authored by Roman Kiryanov's avatar Roman Kiryanov
Browse files

Use `ro.boot.qemu` to check if the device is an emulator



`ro.kernel.qemu` is deprecated.

Bug: 182291166
Test: presubmit
Signed-off-by: default avatarRoman Kiryanov <rkir@google.com>
Change-Id: I75583d20ad0a30ce33227b56f6ce5cd3e6d98ac0
parent 261d874a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1822,8 +1822,7 @@ MediaPlayerService::AudioOutput::~AudioOutput()
//static
void MediaPlayerService::AudioOutput::setMinBufferCount()
{
    char value[PROPERTY_VALUE_MAX];
    if (property_get("ro.kernel.qemu", value, 0)) {
    if (property_get_bool("ro.boot.qemu", false)) {
        mIsOnEmulator = true;
        mMinBufferCount = 12;  // to prevent systematic buffer underrun for emulator
    }