live
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
MP3StreamState Class Reference

#include <MP3StreamState.hh>

Collaboration diagram for MP3StreamState:
Collaboration graph
[legend]

Public Member Functions

 MP3StreamState (UsageEnvironment &env)
 
virtual ~MP3StreamState ()
 
void assignStream (FILE *fid, unsigned fileSize)
 
unsigned findNextHeader (struct timeval &presentationTime)
 
Boolean readFrame (unsigned char *outBuf, unsigned outBufSize, unsigned &resultFrameSize, unsigned &resultDurationInMicroseconds)
 
void getAttributes (char *buffer, unsigned bufferSize) const
 
float filePlayTime () const
 
unsigned fileSize () const
 
void setPresentationTimeScale (unsigned scale)
 
unsigned getByteNumberFromPositionFraction (float fraction)
 
void seekWithinFile (unsigned seekByteNumber)
 
void checkForXingHeader ()
 

Protected Member Functions

unsigned readFromStream (unsigned char *buf, unsigned numChars)
 

Private Member Functions

MP3FrameParamsfr ()
 
MP3FrameParams const & fr () const
 
struct timeval currentFramePlayTime () const
 
Boolean findNextFrame ()
 

Private Attributes

UsageEnvironmentfEnv
 
FILE * fFid
 
Boolean fFidIsReallyASocket
 
unsigned fFileSize
 
unsigned fNumFramesInFile
 
unsigned fPresentationTimeScale
 
Boolean fIsVBR
 
Boolean fHasXingTOC
 
u_int8_t fXingTOC [XING_TOC_LENGTH]
 
MP3FrameParams fCurrentFrame
 
struct timeval fNextFramePresentationTime
 

Detailed Description

Definition at line 41 of file MP3StreamState.hh.

Constructor & Destructor Documentation

MP3StreamState::MP3StreamState ( UsageEnvironment env)
virtual MP3StreamState::~MP3StreamState ( )
virtual

Member Function Documentation

void MP3StreamState::assignStream ( FILE *  fid,
unsigned  fileSize 
)
void MP3StreamState::checkForXingHeader ( )
struct timeval MP3StreamState::currentFramePlayTime ( ) const
private
float MP3StreamState::filePlayTime ( ) const
unsigned MP3StreamState::fileSize ( ) const
inline

Definition at line 57 of file MP3StreamState.hh.

References fFileSize.

57 { return fFileSize; }
unsigned fFileSize
Boolean MP3StreamState::findNextFrame ( )
private
unsigned MP3StreamState::findNextHeader ( struct timeval &  presentationTime)
MP3FrameParams& MP3StreamState::fr ( )
inlineprivate

Definition at line 68 of file MP3StreamState.hh.

References fCurrentFrame.

68 {return fCurrentFrame;}
MP3FrameParams fCurrentFrame
MP3FrameParams const& MP3StreamState::fr ( ) const
inlineprivate

Definition at line 69 of file MP3StreamState.hh.

References fCurrentFrame.

69 {return fCurrentFrame;}
MP3FrameParams fCurrentFrame
void MP3StreamState::getAttributes ( char *  buffer,
unsigned  bufferSize 
) const
unsigned MP3StreamState::getByteNumberFromPositionFraction ( float  fraction)
Boolean MP3StreamState::readFrame ( unsigned char *  outBuf,
unsigned  outBufSize,
unsigned &  resultFrameSize,
unsigned &  resultDurationInMicroseconds 
)
unsigned MP3StreamState::readFromStream ( unsigned char *  buf,
unsigned  numChars 
)
protected
void MP3StreamState::seekWithinFile ( unsigned  seekByteNumber)
void MP3StreamState::setPresentationTimeScale ( unsigned  scale)
inline

Definition at line 58 of file MP3StreamState.hh.

References fPresentationTimeScale.

58 { fPresentationTimeScale = scale; }
unsigned fPresentationTimeScale

Field Documentation

MP3FrameParams MP3StreamState::fCurrentFrame
private

Definition at line 86 of file MP3StreamState.hh.

Referenced by fr().

UsageEnvironment& MP3StreamState::fEnv
private

Definition at line 76 of file MP3StreamState.hh.

FILE* MP3StreamState::fFid
private

Definition at line 77 of file MP3StreamState.hh.

Boolean MP3StreamState::fFidIsReallyASocket
private

Definition at line 78 of file MP3StreamState.hh.

unsigned MP3StreamState::fFileSize
private

Definition at line 79 of file MP3StreamState.hh.

Referenced by fileSize().

Boolean MP3StreamState::fHasXingTOC
private

Definition at line 83 of file MP3StreamState.hh.

Boolean MP3StreamState::fIsVBR
private

Definition at line 83 of file MP3StreamState.hh.

struct timeval MP3StreamState::fNextFramePresentationTime
private

Definition at line 87 of file MP3StreamState.hh.

unsigned MP3StreamState::fNumFramesInFile
private

Definition at line 80 of file MP3StreamState.hh.

unsigned MP3StreamState::fPresentationTimeScale
private

Definition at line 81 of file MP3StreamState.hh.

Referenced by setPresentationTimeScale().

u_int8_t MP3StreamState::fXingTOC[XING_TOC_LENGTH]
private

Definition at line 84 of file MP3StreamState.hh.


The documentation for this class was generated from the following file: