static int vu_decode(struct aufilt_dec_st *st, int16_t *sampv, size_t *sampc) { struct vumeter_dec *vu = (struct vumeter_dec *)st; vu->avg_play = calc_avg_s16(sampv, *sampc); vu->started = true; return 0; }
static int vu_encode(struct aufilt_enc_st *st, void *sampv, size_t *sampc) { struct vumeter_enc *vu = (struct vumeter_enc *)st; vu->avg_rec = calc_avg_s16(sampv, *sampc); vu->started = true; return 0; }