File: mac.h

package info (click to toggle)
libaudio-scan-perl 0.93%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,152 kB
  • sloc: ansic: 11,482; perl: 241; sh: 48; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 706 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef _mac_h_
#define _mac_h_

#define APE_HEADER_LEN              32
#define MAC_397_HEADER_LEN          24
#define MAC_398_HEADER_LEN          70

/* 1000 base. */
const char *mac_profile_names[] = {
  "",
  "Fast (poor)",
  "Normal (good)",
  "High (very good)",
  "Extra high (best)",
  "Insane",
  "BrainDead"
};

typedef struct mac_streaminfo {
  const char* compression;
  uint32_t file_size;
  uint32_t audio_start_offset;
  uint32_t blocks_per_frame;
  uint32_t final_frame;
  uint32_t total_frames;
  uint32_t bits;
  uint32_t channels;
  uint32_t sample_rate;
  uint32_t bitrate;
  uint32_t version;
} mac_streaminfo;

static int get_macfileinfo(PerlIO *infile, char *file, HV *info);

#endif