OpenMW
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends
MWSound::OpenAL_SoundStream Class Reference

List of all members.

Public Member Functions

 OpenAL_SoundStream (OpenAL_Output &output, ALuint src, DecoderPtr decoder, float basevol, float pitch, int flags)
virtual ~OpenAL_SoundStream ()
virtual void stop ()
virtual bool isPlaying ()
virtual double getTimeOffset ()
virtual void update ()
void play ()
bool process ()

Private Member Functions

void updateAll (bool local)
 OpenAL_SoundStream (const OpenAL_SoundStream &rhs)
OpenAL_SoundStreamoperator= (const OpenAL_SoundStream &rhs)

Private Attributes

OpenAL_OutputmOutput
ALuint mSource
ALuint mBuffers [sNumBuffers]
ALenum mFormat
ALsizei mSampleRate
ALuint mBufferSize
ALuint mSamplesQueued
DecoderPtr mDecoder
volatile bool mIsFinished

Static Private Attributes

static const ALuint sNumBuffers = 6
static const ALfloat sBufferLength = 0.125f

Friends

class OpenAL_Output

Constructor & Destructor Documentation

MWSound::OpenAL_SoundStream::OpenAL_SoundStream ( OpenAL_Output output,
ALuint  src,
DecoderPtr  decoder,
float  basevol,
float  pitch,
int  flags 
)

Member Function Documentation

Implements MWSound::Sound.

Implements MWSound::Sound.

OpenAL_SoundStream& MWSound::OpenAL_SoundStream::operator= ( const OpenAL_SoundStream rhs) [private]

Implements MWSound::Sound.

Implements MWSound::Sound.

void MWSound::OpenAL_SoundStream::updateAll ( bool  local) [private]

Friends And Related Function Documentation

friend class OpenAL_Output [friend]

Reimplemented from MWSound::Sound.


Member Data Documentation

const ALfloat MWSound::OpenAL_SoundStream::sBufferLength = 0.125f [static, private]
const ALuint MWSound::OpenAL_SoundStream::sNumBuffers = 6 [static, private]

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