Public Member Functions | Protected Member Functions | Protected Attributes

xl7::directsound::buffers::SoundBuffer Class Reference

#include <SoundBuffer.h>

Inheritance diagram for xl7::directsound::buffers::SoundBuffer:
xl7::directsound::buffers::BaseBuffer xl7::directsound::Resource xl7::directx::Resource xl7::directsound::buffers::CloneBuffer xl7::directsound::buffers::StaticBuffer xl7::directsound::buffers::StreamBuffer

List of all members.

Public Member Functions

IDirectSoundBuffer8 * GetInterfaceEx ()
const IDirectSoundBuffer8 * GetInterfaceEx () const
virtual ISoundControlGetSoundControl ()

Protected Member Functions

 SoundBuffer (SoundBufferManager *manager)
virtual ~SoundBuffer (void)
errorcodes::ErrorCode _QueryBufferInterfaceEx ()
errorcodes::ErrorCode _ReleaseBufferInterfaceEx ()

Protected Attributes

IDirectSoundBuffer8 * _ds_buffer_interface_ex
WAVEFORMATEX _wave_format
char * _soft_buffer
unsigned _buffer_size
ISoundControl_sound_control

Detailed Description

The base class for sound buffers.


Constructor & Destructor Documentation

xl7::directsound::buffers::SoundBuffer::SoundBuffer ( SoundBufferManager manager  )  [protected]

Explicit constructor.

xl7::directsound::buffers::SoundBuffer::~SoundBuffer ( void   )  [protected, virtual]

Destructor.


Member Function Documentation

errorcodes::ErrorCode xl7::directsound::buffers::SoundBuffer::_QueryBufferInterfaceEx (  )  [protected]

Queries the "extended" DirectSound buffer interface. The "normal" DirectSound buffer interface created by _CreateBufferInterface (see class BaseBuffer) will be released.

errorcodes::ErrorCode xl7::directsound::buffers::SoundBuffer::_ReleaseBufferInterfaceEx (  )  [protected]

Releases the "extended" DirectSound buffer interface.

const IDirectSoundBuffer8* xl7::directsound::buffers::SoundBuffer::GetInterfaceEx (  )  const [inline]

Returns the "extended" DirectSound buffer interface.

IDirectSoundBuffer8* xl7::directsound::buffers::SoundBuffer::GetInterfaceEx (  )  [inline]

Returns the "extended" DirectSound buffer interface.

ISoundControl * xl7::directsound::buffers::SoundBuffer::GetSoundControl (  )  [virtual]

Returns the sound control object to play, pause and stop the sound buffer as well as to set and get specific sound settings.

Reimplemented in xl7::directsound::buffers::CloneBuffer.


Member Data Documentation

The size of the audio data buffer.

The "extended" DirectSound buffer interface.

The source audio data buffer.

The sound control object to play, pause and stop the sound buffer as well as to set and get specific sound settings.

The format of the waveform-audio data.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines