filemp3.c File Reference

#include "frontier.h"
#include "standard.h"
#include "file.h"
#include "shell.h"

Include dependency graph for filemp3.c:

Go to the source code of this file.

Data Structures

struct  tympeginfostruct

Functions

static boolean decodempegheader (unsigned long header, tympeginfostruct *info)
static long extractfourbytes (Handle h, long ix)
static boolean getxingheader (tympeginfostruct *info, Handle h, long ix, long *ctframes, long *ctbytes)
boolean getmp3info (const tyfilespec *fs, long *seconds, long *bitrate, long *frequency, long *offset, boolean *flvariablebitrate)

Variables

static const long mpegsamplingfrequency [3][4]
static const long mpegbitrate [2][3][16]


Function Documentation

static boolean decodempegheader unsigned long  header,
tympeginfostruct info
[static]
 

Definition at line 293 of file filemp3.c.

References info, mpegbitrate, and mpegsamplingfrequency.

static long extractfourbytes Handle  h,
long  ix
[static]
 

Definition at line 326 of file filemp3.c.

Referenced by getmp3info(), and getxingheader().

boolean getmp3info const tyfilespec fs,
long seconds,
long bitrate,
long frequency,
long offset,
boolean flvariablebitrate
 

Definition at line 387 of file filemp3.c.

References extractfourbytes(), fifgetposition(), fifreadhandle(), fifsetposition(), h, long, and nil.

Referenced by filefunctionvalue().

Here is the call graph for this function:

static boolean getxingheader tympeginfostruct info,
Handle  h,
long  ix,
long ctframes,
long ctbytes
[static]
 

Definition at line 348 of file filemp3.c.

References extractfourbytes(), and long.

Here is the call graph for this function:


Variable Documentation

const long mpegbitrate[2][3][16] [static]
 

Initial value:

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

Definition at line 280 of file filemp3.c.

Referenced by decodempegheader().

const long mpegsamplingfrequency[3][4] [static]
 

Initial value:

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

Definition at line 273 of file filemp3.c.

Referenced by decodempegheader().


Generated on Thu Jun 1 07:04:11 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6