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 idunknown
push userunknown
push dateunknown
reviewerskinetik
bugs1059698
milestone36.0a1
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;