Bug 848581 - Enable cubeb by default on Gonk. r=kinetik f=mchen
authorMichael Wu <mwu@mozilla.com>
Tue, 19 Mar 2013 16:43:37 +1300
changeset 125359 168b5f190be6ca4b45243222823d7d0d341e2907
parent 125358 20247b8020f18071bbf2c0f0cdfb25b1ac7c2686
child 125360 bc6c0983cec5211233785280ed9878c45c9c84ec
push id24890
push usermgregan@mozilla.com
push dateTue, 19 Mar 2013 03:43:54 +0000
treeherdermozilla-inbound@168b5f190be6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs848581
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 848581 - Enable cubeb by default on Gonk. r=kinetik f=mchen
content/media/AudioStream.cpp
--- a/content/media/AudioStream.cpp
+++ b/content/media/AudioStream.cpp
@@ -99,21 +99,17 @@ static int PrefChanged(const char* aPref
     MutexAutoLock lock(*gAudioPrefsLock);
     if (value.IsEmpty()) {
       gVolumeScale = 1.0;
     } else {
       NS_ConvertUTF16toUTF8 utf8(value);
       gVolumeScale = std::max<double>(0, PR_strtod(utf8.get(), nullptr));
     }
   } 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);
-#endif
     MutexAutoLock lock(*gAudioPrefsLock);
     gUseCubeb = value;
   } else if (strcmp(aPref, PREF_CUBEB_LATENCY) == 0) {
     // Arbitrary default stream latency of 100ms.  The higher this
     // value, the longer stream volume changes will take to become
     // audible.
     uint32_t value = Preferences::GetUint(aPref, 100);
     MutexAutoLock lock(*gAudioPrefsLock);