diff options
author | Juha Heinanen <jh@tutpro.com> | 2015-06-04 11:52:37 +0300 |
---|---|---|
committer | Juha Heinanen <jh@tutpro.com> | 2015-06-04 11:52:37 +0300 |
commit | 25e09c6de764418ab233780a3adb3bef27371dd7 (patch) | |
tree | ab665e941c0f354c23fa6eb4c619a100a29c17e9 | |
parent | 78885f327d9ba1874d31908837ae046dbc45d958 (diff) |
src, docs: added opus codec params to default config and example
-rw-r--r-- | docs/examples/config | 3 | ||||
-rw-r--r-- | src/config.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/docs/examples/config b/docs/examples/config index 11355aa..575bfc2 100644 --- a/docs/examples/config +++ b/docs/examples/config @@ -150,6 +150,9 @@ speex_vbr 0 # Variable Bit Rate 0-1 speex_vad 0 # Voice Activity Detection 0-1 speex_agc_level 8000 +# Opus codec parameters +opus_bitrate 28000 # 6000-510000 + # NAT Behavior Discovery natbd_server creytiv.com natbd_interval 600 # in seconds diff --git a/src/config.c b/src/config.c index a78cd72..8844288 100644 --- a/src/config.c +++ b/src/config.c @@ -692,6 +692,9 @@ int config_write_template(const char *file, const struct config *cfg) (void)re_fprintf(f, "speex_vad\t\t0 # Voice Activity Detection 0-1\n"); (void)re_fprintf(f, "speex_agc_level\t\t8000\n"); + (void)re_fprintf(f, "\n# Opus codec parameters\n"); + (void)re_fprintf(f, "opus_bitrate\t\t28000 # 6000-510000\n"); + (void)re_fprintf(f, "\n# NAT Behavior Discovery\n"); (void)re_fprintf(f, "natbd_server\t\tcreytiv.com\n"); (void)re_fprintf(f, "natbd_interval\t\t600\t\t# in seconds\n"); |