#include "lame.h"
#include <stdio.h>
#include "portableio.h"
Include dependency graph for get_audio.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
struct | blockAlign_struct |
struct | IFF_AIFF_struct |
Typedefs | |
typedef enum sound_file_format_e | sound_file_format |
typedef blockAlign_struct | blockAlign |
typedef IFF_AIFF_struct | IFF_AIFF |
Enumerations | |
enum | sound_file_format_e { sf_unknown, sf_raw, sf_wave, sf_aiff, sf_mp1, sf_mp2, sf_mp3, sf_mp123, sf_ogg } |
Functions | |
static int | is_mpeg_file_format (int input_format) |
FILE * | init_outfile (char *outPath, int decode) |
void | init_infile (lame_global_flags *, char *inPath, int *enc_delay, int *enc_padding) |
void | close_infile (void) |
int | get_audio (lame_global_flags *const gfp, int buffer[2][1152]) |
int | get_audio16 (lame_global_flags *const gfp, short buffer[2][1152]) |
int | WriteWaveHeader (FILE *const fp, const int pcmbytes, const int freq, const int channels, const int bits) |
int | lame_decoder (lame_global_flags *gfp, FILE *outf, int skip, char *inPath, char *outPath, int *enc_delay, int *enc_padding) |
void | SwapBytesInWords (short *loc, int words) |
int | aiff_read_headers (FILE *, IFF_AIFF *) |
int | aiff_seek_to_sound_data (FILE *) |
int | aiff_write_headers (FILE *, IFF_AIFF *) |
int | parse_wavheader (void) |
int | parse_aiff (const char fn[]) |
void | aiff_check (const char *, IFF_AIFF *, int *) |
typedef struct blockAlign_struct blockAlign |
typedef struct IFF_AIFF_struct IFF_AIFF |
typedef enum sound_file_format_e sound_file_format |
enum sound_file_format_e |
Definition at line 28 of file get_audio.h.
void aiff_check | ( | const char * | , | |
IFF_AIFF * | , | |||
int * | ||||
) |
int aiff_read_headers | ( | FILE * | , | |
IFF_AIFF * | ||||
) |
int aiff_seek_to_sound_data | ( | FILE * | ) |
int aiff_write_headers | ( | FILE * | , | |
IFF_AIFF * | ||||
) |
void close_infile | ( | void | ) |
Definition at line 226 of file get_audio.c.
References CloseSndFile(), input_format, and musicin.
Referenced by main().
Here is the call graph for this function:
int get_audio | ( | lame_global_flags *const | gfp, | |
int | buffer[2][1152] | |||
) |
Definition at line 300 of file get_audio.c.
References get_audio_common(), and gfp.
Referenced by lame_encoder(), and main().
Here is the call graph for this function:
int get_audio16 | ( | lame_global_flags *const | gfp, | |
short | buffer[2][1152] | |||
) |
Definition at line 310 of file get_audio.c.
References get_audio_common(), and gfp.
Referenced by gtkmakeframe(), and lame_decoder().
Here is the call graph for this function:
void init_infile | ( | lame_global_flags * | , | |
char * | inPath, | |||
int * | enc_delay, | |||
int * | enc_padding | |||
) |
Definition at line 215 of file get_audio.c.
References count_samples_carefully, gfp, in_bitwidth, musicin, num_samples_read, OpenSndFile(), pcmbitwidth, pcmswapbytes, and swapbytes.
Referenced by init_files(), and main().
Here is the call graph for this function:
FILE* init_outfile | ( | char * | outPath, | |
int | decode | |||
) |
Definition at line 178 of file get_audio.c.
References lame_set_stream_binary_mode().
Referenced by init_files().
Here is the call graph for this function:
static int is_mpeg_file_format | ( | int | input_format | ) | [static] |
Definition at line 40 of file get_audio.h.
References sf_mp1, sf_mp123, sf_mp2, and sf_mp3.
Referenced by get_audio_common(), gtkcontrol(), gtkmakeframe(), OpenSndFile(), and parse_args().
int lame_decoder | ( | lame_global_flags * | gfp, | |
FILE * | outf, | |||
int | skip, | |||
char * | inPath, | |||
char * | outPath, | |||
int * | enc_delay, | |||
int * | enc_padding | |||
) |
Definition at line 174 of file main.c.
References console_flush(), console_printf(), decoder_progress(), decoder_progress_finish(), disable_wav_header, error_printf(), flush_write, mp3data_struct::framenum, mp3data_struct::framesize, get_audio16(), gfp, i, input_format, lame_get_encoder_delay(), lame_get_in_samplerate(), lame_get_num_channels(), lame_get_num_samples(), lame_get_out_samplerate(), lame_get_version(), mp3input_data, mp3data_struct::nsamp, sf_aiff, sf_mp1, sf_mp123, sf_mp2, sf_mp3, sf_raw, sf_wave, silent, swapbytes, mp3data_struct::totalframes, Write16BitsLowHigh(), WriteBytes(), WriteBytesSwapped(), and WriteWaveHeader().
Referenced by main().
Here is the call graph for this function:
int parse_aiff | ( | const char | fn[] | ) |
int parse_wavheader | ( | void | ) |
void SwapBytesInWords | ( | short * | loc, | |
int | words | |||
) |
Definition at line 233 of file get_audio.c.
int WriteWaveHeader | ( | FILE *const | fp, | |
const int | pcmbytes, | |||
const int | freq, | |||
const int | channels, | |||
const int | bits | |||
) |
Definition at line 485 of file get_audio.c.
References Write16BitsLowHigh(), and Write32BitsLowHigh().
Referenced by lame_decoder().
Here is the call graph for this function: