[PATCH 04/11] echo-cancel: Use correct sample spec parameters for webrtc AEC init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Arun Raghavan <git@xxxxxxxxxxxxxxxx>

---
 src/modules/echo-cancel/webrtc.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules/echo-cancel/webrtc.cc b/src/modules/echo-cancel/webrtc.cc
index 85a7180..e2ce08e 100644
--- a/src/modules/echo-cancel/webrtc.cc
+++ b/src/modules/echo-cancel/webrtc.cc
@@ -187,10 +187,10 @@ bool pa_webrtc_ec_init(pa_core *c, pa_echo_canceller *ec,
     *rec_map = *out_map;
 
     pconfig = {
-        webrtc::StreamConfig(out_ss->rate, out_ss->channels, false), /* input stream */
+        webrtc::StreamConfig(rec_ss->rate, rec_ss->channels, false), /* input stream */
         webrtc::StreamConfig(out_ss->rate, out_ss->channels, false), /* output stream */
-        webrtc::StreamConfig(out_ss->rate, out_ss->channels, false), /* reverse input stream */
-        webrtc::StreamConfig(out_ss->rate, out_ss->channels, false), /* reverse output stream */
+        webrtc::StreamConfig(play_ss->rate, play_ss->channels, false), /* reverse input stream */
+        webrtc::StreamConfig(play_ss->rate, play_ss->channels, false), /* reverse output stream */
     };
     apm->Initialize(pconfig);
 
-- 
2.4.3



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux