TORCS  1.3.9
The Open Racing Car Simulator
SoundStream Class Referenceabstract

#include <SoundStream.h>

Inheritance diagram for SoundStream:

Public Types

enum  SoundFormat { FORMAT_INVALID, FORMAT_MONO16, FORMAT_STEREO16 }
 

Public Member Functions

 SoundStream (const char *path)
 
virtual ~SoundStream ()
 
virtual int getRateInHz ()=0
 
virtual SoundFormat getSoundFormat ()=0
 
virtual bool read (char *buffer, const int bufferSize, int *resultSize, const char **error)=0
 
virtual void rewind ()=0
 
virtual void display ()=0
 
virtual bool isValid ()=0
 

Detailed Description

Definition at line 25 of file SoundStream.h.

Member Enumeration Documentation

◆ SoundFormat

Enumerator
FORMAT_INVALID 
FORMAT_MONO16 
FORMAT_STEREO16 

Definition at line 31 of file SoundStream.h.

Constructor & Destructor Documentation

◆ SoundStream()

SoundStream::SoundStream ( const char *  path)
inline

Definition at line 28 of file SoundStream.h.

◆ ~SoundStream()

virtual SoundStream::~SoundStream ( )
inlinevirtual

Definition at line 29 of file SoundStream.h.

Member Function Documentation

◆ display()

virtual void SoundStream::display ( )
pure virtual

Implemented in OggSoundStream.

◆ getRateInHz()

virtual int SoundStream::getRateInHz ( )
pure virtual

Implemented in OggSoundStream.

◆ getSoundFormat()

virtual SoundFormat SoundStream::getSoundFormat ( )
pure virtual

Implemented in OggSoundStream.

◆ isValid()

virtual bool SoundStream::isValid ( )
pure virtual

Implemented in OggSoundStream.

◆ read()

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

Implemented in OggSoundStream.

◆ rewind()

virtual void SoundStream::rewind ( )
pure virtual

Implemented in OggSoundStream.


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