|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLSOUND::CBufferAL Class ReferenceOpenAL buffer.
More...
#include <buffer_al.h>
Inheritance diagram for NLSOUND::CBufferAL:
List of all members.
Detailed Description
OpenAL buffer.
A buffer can be filled with data. An OpenAL buffer cannot be streamed in, i.e. isFillMoreSupported() returns false (instead, streaming would be implemented by buffer queueing).
-
Author:
-
Olivier Cado , Nevrax France
-
Date:
-
2001
Definition at line 49 of file buffer_al.h.
Constructor & Destructor Documentation
NLSOUND::CBufferAL::CBufferAL |
( |
ALuint |
buffername = 0 |
) |
|
|
NLSOUND::CBufferAL::~CBufferAL |
( |
|
) |
[virtual] |
|
Member Function Documentation
ALuint NLSOUND::CBufferAL::bufferName |
( |
|
) |
[inline] |
|
bool NLSOUND::CBufferAL::fillBuffer |
( |
void * |
src, |
|
|
uint32 |
bufsize |
|
) |
[virtual] |
|
virtual bool NLSOUND::CBufferAL::fillMore |
( |
void * |
src, |
|
|
uint32 |
srcsize |
|
) |
[inline, virtual] |
|
|
Fill the buffer partially (if isFillMoreSupported() only), beginning at the pos changed by a previous call to fillMore().
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.
Reimplemented from NLSOUND::IBuffer.
Definition at line 84 of file buffer_al.h.
References src. |
float NLSOUND::CBufferAL::getDuration |
( |
|
) |
const [virtual] |
|
void NLSOUND::CBufferAL::getFormat |
( |
TSampleFormat & |
format, |
|
|
uint & |
freq |
|
) |
const [virtual] |
|
virtual const std::string& NLSOUND::CBufferAL::getName |
( |
void |
|
) |
[inline, virtual] |
|
uint32 NLSOUND::CBufferAL::getSize |
( |
|
) |
const [virtual] |
|
virtual bool NLSOUND::CBufferAL::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 76 of file buffer_al.h. |
bool NLSOUND::CBufferAL::isStereo |
( |
|
) |
const [virtual] |
|
void NLSOUND::CBufferAL::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 52 of file buffer_al.cpp.
References _Name, and bufferName. |
virtual void NLSOUND::CBufferAL::setName |
( |
std::string & |
name |
) |
[inline, virtual] |
|
virtual void NLSOUND::CBufferAL::setSize |
( |
uint32 |
size |
) |
[inline, virtual] |
|
Member Data Documentation
ALuint NLSOUND::CBufferAL::_BufferName [private]
|
|
ALuint NLSOUND::CBufferAL::_Frequency [private]
|
|
std::string NLSOUND::CBufferAL::_Name [private]
|
|
ALenum NLSOUND::CBufferAL::_SampleFormat [private]
|
|
The documentation for this class was generated from the following files:
|
|