21#ifndef _MP3_STREAM_STATE_HH
22#define _MP3_STREAM_STATE_HH
24#ifndef _USAGE_ENVIRONMENT_HH
30#ifndef _MP3_INTERNALS_HH
39#define XING_TOC_LENGTH 100
50 unsigned& resultFrameSize,
51 unsigned& resultDurationInMicroseconds);
float filePlayTime() const
MP3FrameParams fCurrentFrame
unsigned readFromStream(unsigned char *buf, unsigned numChars)
Boolean fFidIsReallyASocket
u_int8_t fXingTOC[XING_TOC_LENGTH]
unsigned fPresentationTimeScale
void checkForXingHeader()
virtual ~MP3StreamState()
struct timeval fNextFramePresentationTime
MP3FrameParams const & fr() const
void getAttributes(char *buffer, unsigned bufferSize) const
void setPresentationTimeScale(unsigned scale)
unsigned findNextHeader(struct timeval &presentationTime)
Boolean readFrame(unsigned char *outBuf, unsigned outBufSize, unsigned &resultFrameSize, unsigned &resultDurationInMicroseconds)
void seekWithinFile(unsigned seekByteNumber)
unsigned getByteNumberFromPositionFraction(float fraction)
unsigned fileSize() const
unsigned fNumFramesInFile
struct timeval currentFramePlayTime() const
void assignStream(FILE *fid, unsigned fileSize)