44 #define OFFSET(x) offsetof(ASNSContext, x)
45 #define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
48 {
"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 },
49 {
"n",
"set the number of per-frame output samples",
OFFSET(nb_out_samples),
AV_OPT_TYPE_INT, {.i64=1024}, 1, INT_MAX,
FLAGS },
90 int ret, nb_out_samples, nb_pad_samples;
125 return nb_out_samples;
137 av_log(ctx,
AV_LOG_DEBUG,
"No space for %d samples, stretching audio fifo\n", nb_samples);
141 "Stretching audio fifo failed, discarded %d samples\n", nb_samples);
190 .
name =
"asetnsamples",
195 .
inputs = asetnsamples_inputs,
196 .
outputs = asetnsamples_outputs,
197 .priv_class = &asetnsamples_class,