Skip to content

Commit

Permalink
fvad: minor code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Nov 5, 2023
1 parent c1c8a96 commit c6195cd
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions modules/fvad/fvad.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <rem.h>
#include <baresip.h>
#include <fvad.h>
#include "fvad.h"


/**
Expand Down Expand Up @@ -133,7 +132,6 @@ static int encode_update(struct aufilt_enc_st **stp, void **ctx,
}

*stp = (struct aufilt_enc_st *)st;

return 0;
}

Expand Down Expand Up @@ -188,7 +186,6 @@ static int decode_update(struct aufilt_dec_st **stp, void **ctx,
}

*stp = (struct aufilt_dec_st *)st;

return 0;
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit c6195cd

Please sign in to comment.