FFmpeg 5.1.6
Functions
resampling_audio.c File Reference
#include <libavutil/opt.h>
#include <libavutil/channel_layout.h>
#include <libavutil/samplefmt.h>
#include <libswresample/swresample.h>

Go to the source code of this file.

Functions

static int get_format_from_sample_fmt (const char **fmt, enum AVSampleFormat sample_fmt)
 
static void fill_samples (double *dst, int nb_samples, int nb_channels, int sample_rate, double *t)
 Fill dst buffer with nb_samples, generated starting from t. More...
 
int main (int argc, char **argv)
 

Function Documentation

◆ get_format_from_sample_fmt()

static int get_format_from_sample_fmt ( const char **  fmt,
enum AVSampleFormat  sample_fmt 
)
static
Examples
resampling_audio.c.

Definition at line 33 of file resampling_audio.c.

Referenced by main().

◆ fill_samples()

static void fill_samples ( double *  dst,
int  nb_samples,
int  nb_channels,
int  sample_rate,
double *  t 
)
static

Fill dst buffer with nb_samples, generated starting from t.

Examples
resampling_audio.c.

Definition at line 65 of file resampling_audio.c.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)
Examples
resampling_audio.c.

Definition at line 81 of file resampling_audio.c.