FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
audio.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"

Go to the source code of this file.

Macros

#define BUFFER_ALIGN   0
 

Functions

AVFrameff_null_get_audio_buffer (AVFilterLink *link, int nb_samples)
 get_audio_buffer() handler for filters which simply pass audio along More...
 
AVFrameff_default_get_audio_buffer (AVFilterLink *link, int nb_samples)
 default handler for get_audio_buffer() for audio inputs More...
 
AVFrameff_get_audio_buffer (AVFilterLink *link, int nb_samples)
 Request an audio samples buffer with a specific set of permissions. More...
 

Macro Definition Documentation

#define BUFFER_ALIGN   0

Definition at line 30 of file audio.c.

Referenced by ff_default_get_audio_buffer().

Function Documentation

AVFrame* ff_null_get_audio_buffer ( AVFilterLink link,
int  nb_samples 
)

get_audio_buffer() handler for filters which simply pass audio along

Definition at line 33 of file audio.c.

Referenced by init().

AVFrame* ff_default_get_audio_buffer ( AVFilterLink link,
int  nb_samples 
)

default handler for get_audio_buffer() for audio inputs

Definition at line 38 of file audio.c.

Referenced by ff_get_audio_buffer().

AVFrame* ff_get_audio_buffer ( AVFilterLink link,
int  nb_samples 
)

Request an audio samples buffer with a specific set of permissions.

Parameters
linkthe output link to the filter from which the buffer will be requested
nb_samplesthe 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 86 of file audio.c.

Referenced by compand_delay(), compand_drain(), compand_nodelay(), config_input(), config_output(), convert_coeffs(), ff_inlink_make_frame_writable(), ff_null_get_audio_buffer(), filter_frame(), fir_frame(), flush_buffer(), flush_frame(), get_audio_buffer(), output_frame(), push_samples(), request_frame(), return_audio_frame(), send_silence(), take_samples(), and try_push_frame().