2
stores information after we found a header.
3
Copyright (C) 2000 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
15
#ifndef __MPEGHEADERINFO_H
16
#define __MPEGHEADERINFO_H
24
#define _FREQUENCY_44100 0
25
#define _FREQUENCY_48000 1
26
#define _FREQUENCY_32000 2
28
#define _MODE_FULLSTEREO 0
31
#define _MODE_SINGLE 3
42
class MpegAudioHeader {
61
unsigned char header[4];
67
int parseHeader(unsigned char* buf);
69
inline int getProtection() { return protection; }
70
inline int getLayer() { return layer; }
71
inline int getVersion() { return version; }
72
inline int getPadding() { return padding; }
73
inline int getFrequency() { return frequency; }
74
inline int getFrequencyHz() { return frequencyHz; }
75
inline int getBitrateindex() { return bitrateindex; }
76
inline int getExtendedmode() { return extendedmode; }
77
inline int getMode() { return mode; }
78
inline int getInputstereo() { return inputstereo; }
79
inline int getFramesize() { return framesize; }
80
inline int getLayer25() { return lmpeg25; }
83
inline int getTableindex() { return tableindex; }
85
inline int getSubbandnumber() { return subbandnumber; }
86
inline int getStereobound() { return stereobound; }
88
inline int getLayer3slots() { return layer3slots; }
90
int getChannelbitrate();
93
inline unsigned char* getHeader() { return header; }
97
void copyTo(MpegAudioHeader* dest);
99
void print(const char* name);
100
void printStates(const char* name);