From c6195cd9c3ffb429e63bcbfbda5cc160833ad354 Mon Sep 17 00:00:00 2001 From: Christian Spielberger Date: Sun, 5 Nov 2023 17:36:47 +0100 Subject: [PATCH] fvad: minor code formatting --- modules/fvad/fvad.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/modules/fvad/fvad.c b/modules/fvad/fvad.c index 854d0c3..0e273e3 100644 --- a/modules/fvad/fvad.c +++ b/modules/fvad/fvad.c @@ -11,7 +11,6 @@ #include #include #include -#include "fvad.h" /** @@ -133,7 +132,6 @@ static int encode_update(struct aufilt_enc_st **stp, void **ctx, } *stp = (struct aufilt_enc_st *)st; - return 0; } @@ -188,7 +186,6 @@ static int decode_update(struct aufilt_dec_st **stp, void **ctx, } *stp = (struct aufilt_dec_st *)st; - return 0; } @@ -217,7 +214,7 @@ static bool auframe_vad(Fvad *fvad, struct auframe *af) while (af->sampc - pos >= sampc) { int err = fvad_process(fvad, (int16_t*)af->sampv + pos, - sampc); + sampc); pos += sampc; if (err > 0) { return true; @@ -253,9 +250,8 @@ static int encode(struct aufilt_enc_st *st, struct auframe *af) vad->vad_tx = vad_tx; debug("vfad: vad_tx: %s\n", desc); - module_event("fvad", "vad_tx", call_get_ua(vad->call), - vad->call, desc); + vad->call, desc); } return 0; @@ -277,7 +273,7 @@ static int decode(struct aufilt_dec_st *st, struct auframe *af) debug("vfad: vad_rx: %s\n", desc); module_event("fvad", "vad_rx", call_get_ua(vad->call), - vad->call, desc); + vad->call, desc); } return 0;