From 07d574a662b6b12a0e2efbf5c984be9801a3e0f5 Mon Sep 17 00:00:00 2001 From: Moises Silva Date: Sun, 20 Mar 2011 21:45:51 -0400 Subject: [PATCH] mod_portaudio: use default global configuration when configuring streams add tons of comments to default portaudio.conf.xml for streams and endpoints --- conf/autoload_configs/portaudio.conf.xml | 148 ++++++++++++++++-- .../endpoints/mod_portaudio/mod_portaudio.c | 2 + 2 files changed, 136 insertions(+), 14 deletions(-) diff --git a/conf/autoload_configs/portaudio.conf.xml b/conf/autoload_configs/portaudio.conf.xml index 8a5c9b2b42..70fd596880 100644 --- a/conf/autoload_configs/portaudio.conf.xml +++ b/conf/autoload_configs/portaudio.conf.xml @@ -36,65 +36,185 @@ + + + + - + + + + + + + + + + + - + + + + + + - + + + + + + + + + + - + + + + + - - - - - diff --git a/src/mod/endpoints/mod_portaudio/mod_portaudio.c b/src/mod/endpoints/mod_portaudio/mod_portaudio.c index 046c5293b0..21e912e968 100644 --- a/src/mod/endpoints/mod_portaudio/mod_portaudio.c +++ b/src/mod/endpoints/mod_portaudio/mod_portaudio.c @@ -1415,6 +1415,8 @@ static switch_status_t load_streams(switch_xml_t streams) stream->indev = -1; stream->outdev = -1; stream->sample_rate = globals.sample_rate; + stream->codec_ms = globals.codec_ms; + stream->channels = 1; switch_snprintf(stream->name, sizeof(stream->name), "%s", stream_name); for (param = switch_xml_child(mystream, "param"); param; param = param->next) { char *var = (char *) switch_xml_attr_soft(param, "name");