Bug 1059698 - Normal Audio Channel map to music stream type r=kinetik
authorStar Cheng <scheng@mozilla.com>
Tue, 28 Oct 2014 11:12:47 +0800
changeset 212728 2a56d1188826fa38c2cacfa5a8c3f4e9d2a9b228
parent 212727 b19d49aca535926fdcc800d648d45c4e29f6cea0
child 212729 78cdffca0449ca04b0fbd31f467c83d811dbd8c7
push id51042
push userryanvm@gmail.com
push dateTue, 28 Oct 2014 20:25:03 +0000
treeherdermozilla-inbound@53d84829b2b8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs1059698
milestone36.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 1059698 - Normal Audio Channel map to music stream type r=kinetik
dom/media/CubebUtils.cpp
--- a/dom/media/CubebUtils.cpp
+++ b/dom/media/CubebUtils.cpp
@@ -167,17 +167,17 @@ uint32_t PreferredSampleRate()
   return sPreferredSampleRate;
 }
 
 #if defined(__ANDROID__) && defined(MOZ_B2G)
 cubeb_stream_type ConvertChannelToCubebType(dom::AudioChannel aChannel)
 {
   switch(aChannel) {
     case dom::AudioChannel::Normal:
-      return CUBEB_STREAM_TYPE_SYSTEM;
+      /* FALLTHROUGH */
     case dom::AudioChannel::Content:
       return CUBEB_STREAM_TYPE_MUSIC;
     case dom::AudioChannel::Notification:
       return CUBEB_STREAM_TYPE_NOTIFICATION;
     case dom::AudioChannel::Alarm:
       return CUBEB_STREAM_TYPE_ALARM;
     case dom::AudioChannel::Telephony:
       return CUBEB_STREAM_TYPE_VOICE_CALL;