Bug 818822 - Update AudioConduit so it can work at 44.1kHz. r=jesup
☠☠ backed out by 0e094298eaef ☠ ☠
authorPaul Adenot <paul@paul.cx>
Mon, 24 Mar 2014 11:06:05 +0100
changeset 195786 33072f5b4c66d01bffd982dbc9c3e4fc6e615803
parent 195785 5349ecd9c313daf3408e8519c020cef5159ff949
child 195787 87f437be7de56c59093e4ba8c0104dce735a2e3e
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup
bugs818822
milestone31.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 818822 - Update AudioConduit so it can work at 44.1kHz. r=jesup
media/webrtc/signaling/src/media-conduit/AudioConduit.cpp
--- a/media/webrtc/signaling/src/media-conduit/AudioConduit.cpp
+++ b/media/webrtc/signaling/src/media-conduit/AudioConduit.cpp
@@ -922,17 +922,17 @@ WebrtcAudioConduit::IsSamplingFreqSuppor
 /* Return block-length of 10 ms audio frame in number of samples */
 unsigned int
 WebrtcAudioConduit::GetNum10msSamplesForFrequency(int samplingFreqHz) const
 {
   switch(samplingFreqHz)
   {
     case 16000: return 160; //160 samples
     case 32000: return 320; //320 samples
-    case 44000: return 440; //440 samples
+    case 44100: return 441; //441 samples
     case 48000: return 480; //480 samples
     default:    return 0; // invalid or unsupported
   }
 }
 
 //Copy the codec passed into Conduit's database
 bool
 WebrtcAudioConduit::CopyCodecToDB(const AudioCodecConfig* codecInfo)