diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-12-22 09:23:22 -0500 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-12-22 09:23:22 -0500 |
commit | fd0ca1c3f9b972a52d48a82b492fd6bac772dc78 (patch) | |
tree | 42d2a87726d196f4db1c68489007520a4c597062 /funcs/func_speex.c | |
parent | 9ef97b5a9191e51f1edc66bb17728fd9fe552c35 (diff) |
Remove as much trailing whitespace as possible.
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
Diffstat (limited to 'funcs/func_speex.c')
-rw-r--r-- | funcs/func_speex.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/funcs/func_speex.c b/funcs/func_speex.c index 78ac4baab..1a88fae7f 100644 --- a/funcs/func_speex.c +++ b/funcs/func_speex.c @@ -4,7 +4,7 @@ * Copyright (C) 2008, Digium, Inc. * * Brian Degenhardt <bmd@digium.com> - * Brett Bryant <bbryant@digium.com> + * Brett Bryant <bbryant@digium.com> * * See http://www.asterisk.org for more information about * the Asterisk project. Please do not directly contact @@ -21,8 +21,8 @@ * * \brief Noise reduction and automatic gain control (AGC) * - * \author Brian Degenhardt <bmd@digium.com> - * \author Brett Bryant <bbryant@digium.com> + * \author Brian Degenhardt <bmd@digium.com> + * \author Brett Bryant <bbryant@digium.com> * * \ingroup functions * @@ -63,7 +63,7 @@ channel that it is executed on. Using <literal>rx</literal> for audio received and <literal>tx</literal> for audio transmitted to the channel. When using this function you set a target audio level. It is primarily intended for use with - analog lines, but could be useful for other channels as well. The target volume + analog lines, but could be useful for other channels as well. The target volume is set with a number between <literal>1-32768</literal>. The larger the number the louder (more gain) the channel will receive.</para> <para>Examples:</para> @@ -77,7 +77,7 @@ </synopsis> <syntax> <parameter name="channeldirection" required="true"> - <para>This can be either <literal>rx</literal> or <literal>tx</literal> + <para>This can be either <literal>rx</literal> or <literal>tx</literal> the values that can be set to this are either <literal>on</literal> and <literal>off</literal></para> </parameter> @@ -108,7 +108,7 @@ struct speex_info { struct speex_direction_info *tx, *rx; }; -static void destroy_callback(void *data) +static void destroy_callback(void *data) { struct speex_info *si = data; @@ -251,13 +251,13 @@ static int speex_write(struct ast_channel *chan, const char *cmd, char *data, co if (!strcasecmp(cmd, "agc")) { if (!sscanf(value, "%30f", &(*sdi)->agclevel)) (*sdi)->agclevel = ast_true(value) ? DEFAULT_AGC_LEVEL : 0.0; - + if ((*sdi)->agclevel > 32768.0) { - ast_log(LOG_WARNING, "AGC(%s)=%.01f is greater than 32768... setting to 32768 instead\n", + ast_log(LOG_WARNING, "AGC(%s)=%.01f is greater than 32768... setting to 32768 instead\n", ((*sdi == si->rx) ? "rx" : "tx"), (*sdi)->agclevel); (*sdi)->agclevel = 32768.0; } - + (*sdi)->agc = !!((*sdi)->agclevel); if ((*sdi)->state) { @@ -292,11 +292,11 @@ static int speex_write(struct ast_channel *chan, const char *cmd, char *data, co ast_audiohook_remove(chan, &si->audiohook); ast_audiohook_detach(&si->audiohook); } - + ast_datastore_free(datastore); } - if (is_new) { + if (is_new) { datastore->data = si; ast_channel_lock(chan); ast_channel_datastore_add(chan, datastore); |