FFmpeg
4.0
|
#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 |
#define MAX_CHANNELS 8 |
Definition at line 29 of file audiogen.c.
Referenced by main().
#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 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 HEADER_SIZE 46 |
Definition at line 112 of file audiogen.c.
Referenced by put_wav_header().
#define FMT_SIZE 18 |
Definition at line 113 of file audiogen.c.
Referenced by put_wav_header().
#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().
Definition at line 31 of file audiogen.c.
Referenced by main().
Definition at line 74 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().
Definition at line 117 of file audiogen.c.
Referenced by main().
Definition at line 137 of file audiogen.c.
|
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 main(), put16(), put32(), and put_wav_header().