|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLSOUND::CBufferDSound Class ReferenceBuffer for the DSound implementation of the audio driver.
More...
#include <buffer_dsound.h>
Inheritance diagram for NLSOUND::CBufferDSound:
List of all members.
Detailed Description
Buffer for the DSound implementation of the audio driver.
A buffer represents a sound file loaded in RAM.
-
Author:
-
Peter Hanappe, Olivier Cado , Nevrax France
-
Date:
-
2002
Definition at line 45 of file buffer_dsound.h.
Constructor & Destructor Documentation
NLSOUND::CBufferDSound::CBufferDSound |
( |
|
) |
|
|
NLSOUND::CBufferDSound::~CBufferDSound |
( |
|
) |
[virtual] |
|
Member Function Documentation
bool NLSOUND::CBufferDSound::fillBuffer |
( |
void * |
src, |
|
|
uint32 |
bufsize |
|
) |
[virtual] |
|
virtual uint8* NLSOUND::CBufferDSound::getData |
( |
|
) |
const [inline, virtual] |
|
float NLSOUND::CBufferDSound::getDuration |
( |
|
) |
const [virtual] |
|
virtual void NLSOUND::CBufferDSound::getFormat |
( |
TSampleFormat & |
format, |
|
|
uint & |
freq |
|
) |
const [inline, virtual] |
|
virtual const std::string& NLSOUND::CBufferDSound::getName |
( |
void |
|
) |
[inline, virtual] |
|
virtual uint32 NLSOUND::CBufferDSound::getSize |
( |
void |
|
) |
const [inline, virtual] |
|
virtual bool NLSOUND::CBufferDSound::isBufferLoaded |
( |
|
) |
[inline, virtual] |
|
virtual bool NLSOUND::CBufferDSound::isFillMoreSupported |
( |
|
) |
const [inline, virtual] |
|
|
Return true if the buffer is able to be fill part by part, false if it must be filled in one call (OpenAL 1.0 -> false).
Implements NLSOUND::IBuffer.
Definition at line 78 of file buffer_dsound.h. |
virtual bool NLSOUND::CBufferDSound::isStereo |
( |
|
) |
const [inline, virtual] |
|
bool NLSOUND::CBufferDSound::loadWavFile |
( |
const char * |
filename |
) |
[virtual] |
|
|
Load a sound file in the buffer. Throws an exception is an error occurs.
If the pos+srcsize exceeds the buffer size, the exceeding data is put at the beginning of the buffer. srcsize must be smaller than the buffer size.
Definition at line 100 of file buffer_dsound.cpp.
References _Data, _Format, _Freq, _Name, _Size, file, format, NLSOUND::Mono16, NLSOUND::Mono8, nlassertex, num, NLSOUND::Stereo16, and NLSOUND::Stereo8. |
void NLSOUND::CBufferDSound::presetName |
( |
const std::string & |
bufferName |
) |
[virtual] |
|
|
Preset the name of the buffer.
Used for async loading to give a name before the buffer is effectivly loaded. If the name after loading of the buffer doesn't match the preset name, the load will assert.
Implements NLSOUND::IBuffer.
Definition at line 59 of file buffer_dsound.cpp.
References _Name. |
Member Data Documentation
uint8* NLSOUND::CBufferDSound::_Data [private]
|
|
uint NLSOUND::CBufferDSound::_Freq [private]
|
|
std::string NLSOUND::CBufferDSound::_Name [private]
|
|
uint32 NLSOUND::CBufferDSound::_Size [private]
|
|
The documentation for this class was generated from the following files:
|
|