[pulseaudio-discuss] [PATCH 05/11] echo-cancel: Canceller may use different spec for playback and capture
arun at accosted.net
arun at accosted.net
Wed Nov 4 04:14:28 PST 2015
From: Arun Raghavan <git at arunraghavan.net>
This sets up the default sink sample spec to match what we expect,
rather than assuming that the canceller will set this up (our assumption
is that we'll use 32 kHz mono unless someone explicitly overrides this).
---
src/modules/echo-cancel/module-echo-cancel.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c
index acf43e9..572db87 100644
--- a/src/modules/echo-cancel/module-echo-cancel.c
+++ b/src/modules/echo-cancel/module-echo-cancel.c
@@ -1696,7 +1696,9 @@ int pa__init(pa_module*m) {
pa_channel_map_init_auto(&source_map, source_ss.channels, PA_CHANNEL_MAP_DEFAULT);
sink_ss = sink_master->sample_spec;
- sink_map = sink_master->channel_map;
+ sink_ss.rate = DEFAULT_RATE;
+ sink_ss.channels = DEFAULT_CHANNELS;
+ pa_channel_map_init_auto(&sink_map, sink_ss.channels, PA_CHANNEL_MAP_DEFAULT);
u = pa_xnew0(struct userdata, 1);
if (!u) {
--
2.4.3
More information about the pulseaudio-discuss
mailing list