ASSERTION FAILED: numberOfChannels == 2 in WebCore::RealtimeIncomingAudioSource:...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Mar 2017 00:09:19 +0000 (00:09 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Mar 2017 00:09:19 +0000 (00:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=169224
<rdar://problem/30856811>

Patch by Youenn Fablet <youenn@apple.com> on 2017-03-06
Reviewed by Alex Christensen.

* platform/mediastream/mac/RealtimeIncomingAudioSource.cpp:
(WebCore::RealtimeIncomingAudioSource::OnData): Updated assertion to allow 1 channel since we can handle it as well.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213478 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/mediastream/mac/RealtimeIncomingAudioSource.cpp

index bcba3b3..47c7ffe 100644 (file)
@@ -1,3 +1,14 @@
+2017-03-06  Youenn Fablet  <youenn@apple.com>
+
+        ASSERTION FAILED: numberOfChannels == 2 in WebCore::RealtimeIncomingAudioSource::OnData
+        https://bugs.webkit.org/show_bug.cgi?id=169224
+        <rdar://problem/30856811>
+
+        Reviewed by Alex Christensen.
+
+        * platform/mediastream/mac/RealtimeIncomingAudioSource.cpp:
+        (WebCore::RealtimeIncomingAudioSource::OnData): Updated assertion to allow 1 channel since we can handle it as well.
+
 2017-03-06  Chris Dumez  <cdumez@apple.com>
 
         [iOS] Throttle CSS animations to 30fps in low power mode
index 11a63ff..02581bd 100644 (file)
@@ -81,7 +81,7 @@ void RealtimeIncomingAudioSource::OnData(const void* audioData, int bitsPerSampl
         return;
 
     ASSERT(bitsPerSample == 16);
-    ASSERT(numberOfChannels == 2);
+    ASSERT(numberOfChannels == 1 || numberOfChannels == 2);
     ASSERT(sampleRate == 48000);
 
     CMTime startTime = CMTimeMake(m_numberOfFrames, sampleRate);