OggInputStream

Engine/source/core/ogg/oggInputStream.h

A multiplexed OGG input stream feeding into stream decoders.

More...

Classes:

Public Types

Parent 

Protected Types

Constructor )(const ThreadSafeRef< OggInputStream > &stream)

Public Friends

class

Protected Functions

bool
_pullNextPage(ogg_page * page)

Pull the next page from the OGG stream.

_pushNextPage(ogg_page * page)

Push the given page to the attached decoder streams.

bool

Public Functions

Register a decoder class with the stream.

bool
init()
bool

Detailed Description

A multiplexed OGG input stream feeding into stream decoders.

Public Types

typedef void Parent 

Protected Types

typedef OggDecoder *(* Constructor )(const ThreadSafeRef< OggInputStream > &stream)

Public Friends

Protected Attributes

Vector< Constructor > mConstructors 
Vector< OggDecoder * > mDecoders 
bool mIsAtEnd 
Mutex mMutex 
ogg_sync_state mOggSyncState 
Stream * mStream 

Protected Functions

_freeDecoders()

_pullNextPage(ogg_page * page)

Pull the next page from the OGG stream.

_pushNextPage(ogg_page * page)

Push the given page to the attached decoder streams.

_requestData()

Public Functions

OggInputStream(Stream * stream)

note:

Ownership of "stream" is transferred to OggInputStream.

~OggInputStream()

addDecoder()

Register a decoder class with the stream.

getDecoder(const String & name)

init()

isAtEnd()