FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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.
 
int main (int argc, char **argv)
 

Function Documentation

static int get_format_from_sample_fmt ( const char **  fmt,
enum AVSampleFormat  sample_fmt 
)
static

Definition at line 33 of file resampling_audio.c.

Referenced by main().

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().

int main ( int  argc,
char **  argv 
)

Definition at line 81 of file resampling_audio.c.