Main Page · Modules · All Classes · Class Hierarchy |
Sound buffer in memory. More...
#include <MASoundMemory.hpp>
Public Member Functions | |
MASoundMemory (const std::string &display_name, MC::BinaryDataSPtr sound_data) | |
Class constructor. More... | |
virtual int | GetSize () const |
Get the sound data size. More... | |
virtual bool | IsValid () const |
Check if the sound data is valid. More... | |
virtual bool | IsCached () const |
Check if the sound data is cached. More... | |
virtual void | AddToBuffer (int position, int count, int32_t *buffer) |
Add sound data to a buffer. More... | |
![]() | |
MASoundBase (const std::string &display_name) | |
Class constructor. More... | |
std::string | GetDisplayName () const |
Get the display name. More... | |
bool | IsEffect () const |
Check if the sound is an effect. More... | |
Private Attributes | |
MC::BinaryDataSPtr | Data |
Sound data. | |
Sound buffer in memory.
Definition at line 38 of file MASoundMemory.hpp.
MASoundMemory::MASoundMemory | ( | const std::string & | display_name, |
MC::BinaryDataSPtr | sound_data | ||
) |
Class constructor.
display_name | Display name |
sound_data | Sound data in-memory buffer |
Definition at line 26 of file MASoundMemory.cpp.
|
virtual |
Add sound data to a buffer.
position | Position in buffer |
count | Count to be copied |
buffer | Target buffer |
Implements MASoundBase.
Definition at line 51 of file MASoundMemory.cpp.
|
virtual |
Get the sound data size.
Implements MASoundBase.
Definition at line 33 of file MASoundMemory.cpp.
|
virtual |
Check if the sound data is cached.
Implements MASoundBase.
Definition at line 45 of file MASoundMemory.cpp.
|
virtual |
Check if the sound data is valid.
Implements MASoundBase.
Definition at line 39 of file MASoundMemory.cpp.