#include "avfilter.h"
#include "internal.h"
Go to the source code of this file.
Request an audio samples buffer with a specific set of permissions.
- Parameters
-
link | the output link to the filter from which the buffer will be requested |
nb_samples | the number of samples per channel |
- Returns
- A reference to the samples. This must be unreferenced with avfilter_unref_buffer when you are finished with it.
Definition at line 70 of file audio.c.
Referenced by ff_filter_frame_framed(), ff_filter_frame_needs_framing(), ff_null_get_audio_buffer(), filter_frame(), get_audio_buffer(), output_frame(), push_samples(), read_from_fifo(), request_frame(), return_audio_frame(), and send_silence().
int ff_filter_samples |
( |
AVFilterLink * |
link, |
|
|
AVFilterBufferRef * |
samplesref |
|
) |
| |
Send a buffer of audio samples to the next filter.
- Parameters
-
link | the output link over which the audio samples are being sent |
samplesref | a reference to the buffer of audio samples being sent. The receiving filter will free this reference when it no longer needs it or pass it on to the next filter. |
- Returns
- >= 0 on success, a negative AVERROR on error. The receiving filter is responsible for unreferencing samplesref in case of error.
int ff_filter_samples_framed |
( |
AVFilterLink * |
link, |
|
|
AVFilterBufferRef * |
samplesref |
|
) |
| |
Send a buffer of audio samples to the next link, without checking min_samples.
Initial value:
Definition at line 37 of file audio.h.