summaryrefslogtreecommitdiff
path: root/modules/opus
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-11-09 16:35:58 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-11-09 16:35:58 +0100
commit4d5d9a6e4e0811b52b427602261d5e0b9bc85f21 (patch)
tree6c34ee30cabf98f1895715cdf3421eddb3250dc2 /modules/opus
parent4cd8d09b5de8218369a420ec41023b32d3644c3f (diff)
opus: add config param opus_sprop_stereo
Diffstat (limited to 'modules/opus')
-rw-r--r--modules/opus/opus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/opus/opus.c b/modules/opus/opus.c
index d1802a8..7acccec 100644
--- a/modules/opus/opus.c
+++ b/modules/opus/opus.c
@@ -88,14 +88,15 @@ static int module_init(void)
struct conf *conf = conf_cur();
uint32_t value;
char *p = fmtp + str_len(fmtp);
- bool b, stereo = true;
+ bool b, stereo = true, sprop_stereo = true;
int n = 0;
conf_get_bool(conf, "opus_stereo", &stereo);
+ conf_get_bool(conf, "opus_sprop_stereo", &sprop_stereo);
/* always set stereo parameter first */
n = re_snprintf(p, sizeof(fmtp) - str_len(p),
- "stereo=%d;sprop-stereo=%d", stereo, stereo);
+ "stereo=%d;sprop-stereo=%d", stereo, sprop_stereo);
if (n <= 0)
return ENOMEM;