Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fvad: minor code formatting #34

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading