diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-02-15 02:44:20 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-02-15 02:44:20 +0100 |
commit | 22f1fce330059ef8a383cf327a023d6a9da5ad3e (patch) | |
tree | 6893f158dcaaaa1b9f1317923c32a841ba31f768 /libtoolame-dab/audio_read.h | |
parent | 891bb2592944aa2be2d81e1583e73e632e70537f (diff) | |
download | ODR-AudioEnc-22f1fce330059ef8a383cf327a023d6a9da5ad3e.tar.gz ODR-AudioEnc-22f1fce330059ef8a383cf327a023d6a9da5ad3e.tar.bz2 ODR-AudioEnc-22f1fce330059ef8a383cf327a023d6a9da5ad3e.zip |
Include toolame-dab as library
Diffstat (limited to 'libtoolame-dab/audio_read.h')
-rw-r--r-- | libtoolame-dab/audio_read.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/libtoolame-dab/audio_read.h b/libtoolame-dab/audio_read.h new file mode 100644 index 0000000..215e89d --- /dev/null +++ b/libtoolame-dab/audio_read.h @@ -0,0 +1,48 @@ +/* AIFF Definitions */ + +#define IFF_ID_FORM 0x464f524d /* "FORM" */ +#define IFF_ID_AIFF 0x41494646 /* "AIFF" */ +#define IFF_ID_COMM 0x434f4d4d /* "COMM" */ +#define IFF_ID_SSND 0x53534e44 /* "SSND" */ +#define IFF_ID_MPEG 0x4d504547 /* "MPEG" */ + +#define AIFF_FORM_HEADER_SIZE 12 +#define AIFF_SSND_HEADER_SIZE 16 + + +typedef struct blockAlign_struct +{ + unsigned long offset; + unsigned long blockSize; +} +blockAlign; + +typedef struct IFF_AIFF_struct +{ + short numChannels; + unsigned long numSampleFrames; + short sampleSize; + double sampleRate; + unsigned long sampleType; + blockAlign blkAlgn; +} +IFF_AIFF; + +#if defined(JACK_INPUT) +void setup_jack(frame_header *header, const char* jackname); +int process(jack_nframes_t nframes, void *arg); +#endif +void jack_shutdown(void *arg); + +void parse_input_file (FILE *musicin, char *, frame_header *header, unsigned long *num_samples); +void aiff_check (char *file_name, IFF_AIFF * pcm_aiff_data, int *version); + +int aiff_read_headers (FILE *, IFF_AIFF *); +int aiff_seek_to_sound_data (FILE *); +enum byte_order DetermineByteOrder (void); +void SwapBytesInWords (short *loc, int words); + unsigned long read_samples (music_in_t*, short[2304], unsigned long, + unsigned long); + unsigned long get_audio (music_in_t*, short[2][1152], unsigned long, + int, frame_header *header); + |