Main Page · Modules · All Classes · Class Hierarchy |
Sound file. More...
#include <MASoundFile.hpp>
Public Member Functions | |
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... | |
Sound file.
Definition at line 37 of file MASoundFile.hpp.
|
virtual |
Add sound data to a buffer.
position | Position in buffer |
count | Count to be copied |
buffer | Target buffer |
Implements MASoundBase.
Definition at line 63 of file MASoundFile.cpp.
|
virtual |
Get the sound data size.
Implements MASoundBase.
Definition at line 45 of file MASoundFile.cpp.
|
virtual |
Check if the sound data is cached.
Implements MASoundBase.
Definition at line 57 of file MASoundFile.cpp.
|
virtual |
Check if the sound data is valid.
Implements MASoundBase.
Definition at line 51 of file MASoundFile.cpp.