зеркало из https://github.com/mozilla/gecko-dev.git
Bug 848581 - Enable cubeb by default on Gonk. r=kinetik f=mchen
This commit is contained in:
Родитель
b43cd98944
Коммит
72d26537bd
|
@ -104,11 +104,7 @@ static int PrefChanged(const char* aPref, void* aClosure)
|
||||||
gVolumeScale = std::max<double>(0, PR_strtod(utf8.get(), nullptr));
|
gVolumeScale = std::max<double>(0, PR_strtod(utf8.get(), nullptr));
|
||||||
}
|
}
|
||||||
} else if (strcmp(aPref, PREF_USE_CUBEB) == 0) {
|
} else if (strcmp(aPref, PREF_USE_CUBEB) == 0) {
|
||||||
#ifdef MOZ_WIDGET_GONK
|
|
||||||
bool value = Preferences::GetBool(aPref, false);
|
|
||||||
#else
|
|
||||||
bool value = Preferences::GetBool(aPref, true);
|
bool value = Preferences::GetBool(aPref, true);
|
||||||
#endif
|
|
||||||
MutexAutoLock lock(*gAudioPrefsLock);
|
MutexAutoLock lock(*gAudioPrefsLock);
|
||||||
gUseCubeb = value;
|
gUseCubeb = value;
|
||||||
} else if (strcmp(aPref, PREF_CUBEB_LATENCY) == 0) {
|
} else if (strcmp(aPref, PREF_CUBEB_LATENCY) == 0) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче