OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
MWSound::OpenAL_SoundStream Class Reference
Collaboration diagram for MWSound::OpenAL_SoundStream:

Public Member Functions

 OpenAL_SoundStream (ALuint src, DecoderPtr decoder)
 
 ~OpenAL_SoundStream ()
 
bool init (bool getLoudnessData=false)
 
bool isPlaying ()
 
double getStreamDelay () const
 
double getStreamOffset () const
 
float getCurrentLoudness () const
 
bool process ()
 
ALint refillQueue ()
 

Private Member Functions

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

Private Attributes

ALuint mSource
 
std::array< ALuint, 6 > mBuffers
 
ALint mCurrentBufIdx
 
ALenum mFormat
 
ALsizei mSampleRate
 
ALuint mBufferSize
 
ALuint mFrameSize
 
ALint mSilence
 
DecoderPtr mDecoder
 
std::unique_ptr< Sound_LoudnessmLoudnessAnalyzer
 
volatile bool mIsFinished
 

Static Private Attributes

static const ALfloat sBufferLength = 0.125f
 

Friends

class OpenAL_Output
 

Constructor & Destructor Documentation

MWSound::OpenAL_SoundStream::OpenAL_SoundStream ( const OpenAL_SoundStream rhs)
private
MWSound::OpenAL_SoundStream::OpenAL_SoundStream ( ALuint  src,
DecoderPtr  decoder 
)
MWSound::OpenAL_SoundStream::~OpenAL_SoundStream ( )

Member Function Documentation

float MWSound::OpenAL_SoundStream::getCurrentLoudness ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

double MWSound::OpenAL_SoundStream::getStreamDelay ( ) const

Here is the caller graph for this function:

double MWSound::OpenAL_SoundStream::getStreamOffset ( ) const

Here is the caller graph for this function:

bool MWSound::OpenAL_SoundStream::init ( bool  getLoudnessData = false)

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWSound::OpenAL_SoundStream::isPlaying ( )

Here is the caller graph for this function:

OpenAL_SoundStream& MWSound::OpenAL_SoundStream::operator= ( const OpenAL_SoundStream rhs)
private
bool MWSound::OpenAL_SoundStream::process ( )

Here is the call graph for this function:

ALint MWSound::OpenAL_SoundStream::refillQueue ( )

Here is the caller graph for this function:

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

Friends And Related Function Documentation

friend class OpenAL_Output
friend

Member Data Documentation

std::array<ALuint,6> MWSound::OpenAL_SoundStream::mBuffers
private
ALuint MWSound::OpenAL_SoundStream::mBufferSize
private
ALint MWSound::OpenAL_SoundStream::mCurrentBufIdx
private
DecoderPtr MWSound::OpenAL_SoundStream::mDecoder
private
ALenum MWSound::OpenAL_SoundStream::mFormat
private
ALuint MWSound::OpenAL_SoundStream::mFrameSize
private
volatile bool MWSound::OpenAL_SoundStream::mIsFinished
private
std::unique_ptr<Sound_Loudness> MWSound::OpenAL_SoundStream::mLoudnessAnalyzer
private
ALsizei MWSound::OpenAL_SoundStream::mSampleRate
private
ALint MWSound::OpenAL_SoundStream::mSilence
private
ALuint MWSound::OpenAL_SoundStream::mSource
private
const ALfloat MWSound::OpenAL_SoundStream::sBufferLength = 0.125f
staticprivate

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