Main Page | Namespace List | Class Hierarchy | Class List | Directories | Namespace Members | Class Members

Layer Class Reference

Mp3 header parsing. More...

List of all members.

Public Member Functions

const char * mode_name (void)
const char * layer_name (void)
const char * version_name (void)
const char * version_num (void)
unsigned int bitrate (void)
unsigned int sfreq (void)
unsigned long length (void)
unsigned int pcmPerFrame (void)
int mode (void)
bool get (const char *filename)

Static Public Attributes

static const char * mode_names [5]
static const char * layer_names [3] = {"I", "II", "III"}
static const char * version_names [3] = {"MPEG-1", "MPEG-2 LSF", "MPEG-2.5"}
static const char * version_nums [3] = {"1", "2", "2.5"}
static const unsigned int bitrates [3][3][15]
static const unsigned int s_freq [3][4]
static const int MPG_MD_STEREO = 0
static const int MPG_MD_JOINT_STEREO = 1
static const int MPG_MD_DUAL_CHANNEL = 2
static const int MPG_MD_MONO = 3
static const int MPG_MD_LR_LR = 0
static const int MPG_MD_LR_I = 1
static const int MPG_MD_MS_LR = 2
static const int MPG_MD_MS_I = 3


Detailed Description

Mp3 header parsing.


Member Data Documentation

const unsigned int Layer::bitrates [static]
 

Initial value:

{
  {
    {0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448},
    {0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384},
    {0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320}
  },
  {
    {0, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256},
    {0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160},
    {0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160}
  },
  {
    {0, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256},
    {0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160},
    {0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160}
  }
}

const char * Layer::mode_names [static]
 

Initial value:

 {"stereo", "j-stereo", "dual-ch",
                                    "single-ch", "multi-ch"}

const unsigned int Layer::s_freq [static]
 

Initial value:

{
  {44100, 48000, 32000, 0},
  {22050, 24000, 16000, 0},
  {11025, 8000, 8000, 0}
}


The documentation for this class was generated from the following files:
Generated on Fri Apr 8 01:38:02 2005 for libecasound by  doxygen 1.4.1