| 1 |
#ifndef _mac_h_ |
| 2 |
#define _mac_h_ |
| 3 |
|
| 4 |
#define APE_HEADER_LEN 32 |
| 5 |
#define MAC_397_HEADER_LEN 24 |
| 6 |
#define MAC_398_HEADER_LEN 70 |
| 7 |
|
| 8 |
|
| 9 |
const char *mac_profile_names[] = { |
| 10 |
"", |
| 11 |
"Fast (poor)", |
| 12 |
"Normal (good)", |
| 13 |
"High (very good)", |
| 14 |
"Extra high (best)", |
| 15 |
"Insane", |
| 16 |
"BrainDead" |
| 17 |
}; |
| 18 |
|
| 19 |
typedef struct mac_streaminfo { |
| 20 |
const char* compression; |
| 21 |
uint32_t file_size; |
| 22 |
uint32_t audio_start_offset; |
| 23 |
uint32_t blocks_per_frame; |
| 24 |
uint32_t final_frame; |
| 25 |
uint32_t total_frames; |
| 26 |
uint32_t bits; |
| 27 |
uint32_t channels; |
| 28 |
uint32_t sample_rate; |
| 29 |
uint32_t bitrate; |
| 30 |
uint32_t version; |
| 31 |
} mac_streaminfo; |
| 32 |
|
| 33 |
static int get_macfileinfo(PerlIO *infile, char *file, HV *info); |
| 34 |
|
| 35 |
#endif |