Base class for sounds.
More...
#include <MASoundBase.hpp>
Base class for sounds.
Definition at line 45 of file MASoundBase.hpp.
MASoundBase::MASoundBase |
( |
const std::string & |
display_name | ) |
|
|
explicit |
virtual void MASoundBase::AddToBuffer |
( |
int |
position, |
|
|
int |
count, |
|
|
int32_t * |
buffer |
|
) |
| |
|
pure virtual |
Add sound data to a buffer.
- Parameters
-
position | Position in buffer |
count | Count to be copied |
buffer | Target buffer |
Implemented in MASoundMemory, and MASoundFile.
std::string MASoundBase::GetDisplayName |
( |
| ) |
const |
Get the display name.
- Returns
- Display name
Definition at line 35 of file MASoundBase.cpp.
virtual int MASoundBase::GetSize |
( |
| ) |
const |
|
pure virtual |
virtual bool MASoundBase::IsCached |
( |
| ) |
const |
|
pure virtual |
Check if the sound data is cached.
- Returns
- True if cached otherwise false.
Implemented in MASoundMemory, and MASoundFile.
bool MASoundBase::IsEffect |
( |
| ) |
const |
Check if the sound is an effect.
- Returns
- True if the sound is an effect otherwise false.
Definition at line 41 of file MASoundBase.cpp.
virtual bool MASoundBase::IsValid |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following files:
- /home/kecsap/Downloads/00/aiboplus/aiboplus/mindaibo/src/sound/MASoundBase.hpp
- /home/kecsap/Downloads/00/aiboplus/aiboplus/mindaibo/src/sound/MASoundBase.cpp