RTP Trace System  1.0
mp3totrace.cc File Reference
#include "system.h"
#include <fstream.h>

Enumerations

enum  _mpegversion { mpeg1, mpeg2 }
enum  _mode { fullstereo, jocardinal, dual, single }
enum  _frequency { frequency44100, frequency48000, frequency32000 }

Functions

cardinal readByte (ifstream *loader)
bool skipBytes (ifstream *loader, const cardinal bytes)
bool isValidHeader (const cardinal mpeg, const cardinal mylayer, const cardinal brindex, const cardinal sfreq)
bool getNextFrame (ifstream *loader)
int main (int argc, char **argv)

Variables

const cardinal frequencies [2][3]
const cardinal bitrate [2][3][15]
cardinal layer3slots
cardinal layer
cardinal protection
cardinal bitrateindex
cardinal padding
cardinal extendedmode
cardinal framesize
cardinal frames = 0
enum _mpegversion version
enum _mode mode
enum _frequency frequency

Enumeration Type Documentation

enum _frequency
Enumerator:
frequency44100 
frequency48000 
frequency32000 
enum _mode
Enumerator:
fullstereo 
jocardinal 
dual 
single 
Enumerator:
mpeg1 
mpeg2 

Function Documentation

bool getNextFrame ( ifstream *  loader)
bool isValidHeader ( const cardinal  mpeg,
const cardinal  mylayer,
const cardinal  brindex,
const cardinal  sfreq 
)
int main ( int  argc,
char **  argv 
)
cardinal readByte ( ifstream *  loader)
bool skipBytes ( ifstream *  loader,
const cardinal  bytes 
)

Variable Documentation

const cardinal bitrate[2][3][15]
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}}
}
const cardinal frequencies[2][3]
Initial value:
{
  {44100,48000,32000}, 
  {22050,24000,16000}  
}
enum _mode mode
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines