45 #define OFFSET(x) offsetof(ASNSContext, x)
46 #define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
51 {
"nb_out_samples",
"set the number of per-frame output samples",
OFFSET(nb_out_samples),
AV_OPT_TYPE_INT, {.i64=1024}, 1, INT_MAX,
FLAGS },
52 {
"n",
"set the number of per-frame output samples",
OFFSET(nb_out_samples),
AV_OPT_TYPE_INT, {.i64=1024}, 1, INT_MAX,
FLAGS },
63 asns->
class = &asetnsamples_class;
97 int nb_out_samples, nb_pad_samples;
130 return nb_out_samples;
142 av_log(ctx,
AV_LOG_DEBUG,
"No space for %d samples, stretching audio fifo\n", nb_samples);
146 "Stretching audio fifo failed, discarded %d samples\n", nb_samples);
199 .
name =
"asetnsamples",
204 .
inputs = asetnsamples_inputs,
205 .
outputs = asetnsamples_outputs,
206 .priv_class = &asetnsamples_class,