FFmpeg
|
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | MAX_CHANNELS 8 |
#define | FRAC_BITS 16 |
#define | FRAC_ONE (1 << FRAC_BITS) |
#define | COS_TABLE_BITS 7 |
#define | CSHIFT (FRAC_BITS - COS_TABLE_BITS - 2) |
#define | HEADER_SIZE 46 |
#define | FMT_SIZE 18 |
#define | SAMPLE_SIZE 2 |
#define | WFORMAT_PCM 0x0001 |
Functions | |
static unsigned int | myrnd (unsigned int *seed_ptr, int n) |
static int | int_cos (int a) |
static void | put16 (int16_t v) |
static void | put32 (uint32_t v) |
static void | put_wav_header (int sample_rate, int channels, int nb_samples) |
int | main (int argc, char **argv) |
Variables | |
static const unsigned short | cos_table [(1<< COS_TABLE_BITS)+2] |
FILE * | outfile |
Macro Definition Documentation
#define COS_TABLE_BITS 7 |
Definition at line 49 of file audiogen.c.
#define CSHIFT (FRAC_BITS - COS_TABLE_BITS - 2) |
Definition at line 72 of file audiogen.c.
Referenced by int_cos().
#define FMT_SIZE 18 |
Definition at line 113 of file audiogen.c.
Referenced by put_wav_header().
#define FRAC_BITS 16 |
Definition at line 46 of file audiogen.c.
#define FRAC_ONE (1 << FRAC_BITS) |
Definition at line 47 of file audiogen.c.
#define HEADER_SIZE 46 |
Definition at line 112 of file audiogen.c.
Referenced by put_wav_header().
#define MAX_CHANNELS 8 |
Definition at line 29 of file audiogen.c.
Referenced by main().
#define SAMPLE_SIZE 2 |
Definition at line 114 of file audiogen.c.
Referenced by put_wav_header().
#define WFORMAT_PCM 0x0001 |
Definition at line 115 of file audiogen.c.
Referenced by put_wav_header().
Function Documentation
|
static |
Definition at line 74 of file audiogen.c.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 137 of file audiogen.c.
|
static |
Definition at line 31 of file audiogen.c.
Referenced by main().
|
static |
Definition at line 98 of file audiogen.c.
Referenced by main(), and put_wav_header().
|
static |
Definition at line 104 of file audiogen.c.
Referenced by put_wav_header().
|
static |
Definition at line 117 of file audiogen.c.
Referenced by main().
Variable Documentation
|
static |
Definition at line 52 of file audiogen.c.
Referenced by int_cos().
FILE* outfile |
Definition at line 96 of file audiogen.c.
Referenced by audio_decode_example(), main(), put16(), put32(), and put_wav_header().
Generated on Mon Nov 18 2024 06:52:04 for FFmpeg by 1.8.11