Defines |
| #define | ULONG_MAX ((unsigned long)-1) |
| #define | TRACK_MAX_FRAMES ULONG_MAX/4/1152 |
| #define | bsbufid(fr) (fr)->bsbuf==(fr)->bsspace[0] ? 0 : ((fr)->bsbuf==fr->bsspace[1] ? 1 : ( (fr)->bsbuf==(fr)->bsspace[0]+512 ? 2 : ((fr)->bsbuf==fr->bsspace[1]+512 ? 3 : -1) ) ) |
| #define | HDRCMPMASK 0xfffe0d00 |
| #define | HDRSAMPMASK 0xc00 /* 1100 00000000, FF bits (sample rate) */ |
| #define | free_format_header(head) ( ((head & 0xffe00000) == 0xffe00000) && ((head>>17)&3) && (((head>>12)&0xf) == 0x0) && (((head>>10)&0x3) != 0x3 )) |
| #define | make_long(a, o) ((((unsigned long) a[o]) << 24) | (((unsigned long) a[o+1]) << 16) | (((unsigned long) a[o+2]) << 8) | ((unsigned long) a[o+3])) |
| #define | make_short(a, o) ((((unsigned short) a[o]) << 8) | ((unsigned short) a[o+1])) |
Functions |
| static int | decode_header (mpg123_handle *fr, unsigned long newhead) |
| int | frame_bitrate (mpg123_handle *fr) |
| long | frame_freq (mpg123_handle *fr) |
| int | head_check (unsigned long head) |
| static int | check_lame_tag (mpg123_handle *fr) |
| static int | header_mono (unsigned long newhead) |
| int | read_frame (mpg123_handle *fr) |
| static int | guess_freeformat_framesize (mpg123_handle *fr) |
| void | set_pointer (mpg123_handle *fr, long backstep) |
| double | compute_bpf (mpg123_handle *fr) |
| double attribute_align_arg | mpg123_tpf (mpg123_handle *fr) |
| int attribute_align_arg | mpg123_position (mpg123_handle *fr, off_t no, off_t buffsize, off_t *current_frame, off_t *frames_left, double *current_seconds, double *seconds_left) |
| int | get_songlen (mpg123_handle *fr, int no) |
Variables |
| static const int | tabsel_123 [2][3][16] |
| const long | freqs [9] = { 44100, 48000, 32000, 22050, 24000, 16000 , 11025 , 12000 , 8000 } |