TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
OggSoundStream Class Reference

#include <OggSoundStream.h>

Inheritance diagram for OggSoundStream:
Collaboration diagram for OggSoundStream:

Public Member Functions

 OggSoundStream (char *path)
virtual ~OggSoundStream ()
virtual int getRateInHz ()
virtual SoundFormat getSoundFormat ()
virtual bool read (char *buffer, const int bufferSize, int *resultSize, const char **error)
virtual void rewind ()
virtual void display ()
virtual bool isValid ()
Public Member Functions inherited from SoundStream
 SoundStream (const char *path)
virtual ~SoundStream ()

Private Member Functions

const char * errorString (int code)

Private Attributes

OggVorbis_File oggStream
bool valid
int rateInHz
SoundFormat format

Additional Inherited Members

Public Types inherited from SoundStream
enum  SoundFormat { FORMAT_INVALID , FORMAT_MONO16 , FORMAT_STEREO16 }

Detailed Description

Definition at line 30 of file OggSoundStream.h.

Constructor & Destructor Documentation

◆ OggSoundStream()

OggSoundStream::OggSoundStream ( char * path)

Definition at line 25 of file OggSoundStream.cpp.

Here is the call graph for this function:

◆ ~OggSoundStream()

OggSoundStream::~OggSoundStream ( )
virtual

Definition at line 55 of file OggSoundStream.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ display()

void OggSoundStream::display ( )
virtual

Implements SoundStream.

Definition at line 115 of file OggSoundStream.cpp.

Here is the call graph for this function:

◆ errorString()

const char * OggSoundStream::errorString ( int code)
private

Definition at line 143 of file OggSoundStream.cpp.

◆ getRateInHz()

virtual int OggSoundStream::getRateInHz ( )
inlinevirtual

Implements SoundStream.

Definition at line 36 of file OggSoundStream.h.

◆ getSoundFormat()

virtual SoundFormat OggSoundStream::getSoundFormat ( )
inlinevirtual

Implements SoundStream.

Definition at line 37 of file OggSoundStream.h.

◆ isValid()

virtual bool OggSoundStream::isValid ( )
inlinevirtual

Implements SoundStream.

Definition at line 42 of file OggSoundStream.h.

◆ read()

bool OggSoundStream::read ( char * buffer,
const int bufferSize,
int * resultSize,
const char ** error )
virtual

Implements SoundStream.

Definition at line 65 of file OggSoundStream.cpp.

Here is the call graph for this function:

◆ rewind()

void OggSoundStream::rewind ( )
virtual

Implements SoundStream.

Definition at line 102 of file OggSoundStream.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ format

SoundFormat OggSoundStream::format
private

Definition at line 52 of file OggSoundStream.h.

◆ oggStream

OggVorbis_File OggSoundStream::oggStream
private

Definition at line 49 of file OggSoundStream.h.

◆ rateInHz

int OggSoundStream::rateInHz
private

Definition at line 51 of file OggSoundStream.h.

◆ valid

bool OggSoundStream::valid
private

Definition at line 50 of file OggSoundStream.h.


The documentation for this class was generated from the following files:
  • C:/Users/berni/Development/torcs_git/torcs-code/torcs/torcs/src/libs/musicplayer/OggSoundStream.h
  • C:/Users/berni/Development/torcs_git/torcs-code/torcs/torcs/src/libs/musicplayer/OggSoundStream.cpp