Represents a 2D grid of texels.
More...
#include <AudioSample.h>
|
| virtual void | SetSample (ALLEGRO_SAMPLE *pSample) |
| |
| void | Split (const std::string &line, const char delimeter, std::vector< std::string > &elements) |
| | Splits a string into a vector of strings.
|
| |
| void | ParseComments (std::string &line) |
| | Removes c-style, single-line comments from a line of text.
|
| |
| void | TrimLine (std::string &line) |
| | Removes white-space at the front and end of a line of text.
|
| |
| ResourceManager * | GetResourceManager () |
| | Gets a pointer to the ResourceManager that was used to load the resource.
|
| |
| virtual Resource * | Clone () |
| | Clones a resource.
|
| |
Represents a 2D grid of texels.
Definition at line 20 of file AudioSample.h.
◆ AudioSample()
| KatanaEngine::AudioSample::AudioSample |
( |
| ) |
|
◆ ~AudioSample()
| KatanaEngine::AudioSample::~AudioSample |
( |
| ) |
|
|
virtual |
◆ IsCloneable()
| virtual bool KatanaEngine::AudioSample::IsCloneable |
( |
| ) |
const |
|
inlinevirtual |
Used to determine if the texture is cloneable.
- Returns
- Returns true if the texture is clonable, false otherwise.
Implements KatanaEngine::Resource.
Definition at line 39 of file AudioSample.h.
◆ Load()
| bool KatanaEngine::AudioSample::Load |
( |
const std::string & | path, |
|
|
ResourceManager * | pManager ) |
|
virtual |
Load the desired font into memory.
- Parameters
-
| path | The path to the desired font. |
| pManager | A pointer to the ResourceManager that will manage the font. |
- Returns
- Returns true if the font was loaded, false otherwise.
Implements KatanaEngine::Resource.
Definition at line 39 of file AudioSample.cpp.
◆ Play()
| bool KatanaEngine::AudioSample::Play |
( |
| ) |
|
|
virtual |
◆ ReserveSamples()
| static void KatanaEngine::AudioSample::ReserveSamples |
( |
int | count | ) |
|
|
inlinestatic |
◆ SetLooping()
| void KatanaEngine::AudioSample::SetLooping |
( |
const bool | loop = true | ) |
|
|
virtual |
◆ SetSample()
| void KatanaEngine::AudioSample::SetSample |
( |
ALLEGRO_SAMPLE * | pSample | ) |
|
|
protectedvirtual |
◆ SetVolume()
| void KatanaEngine::AudioSample::SetVolume |
( |
const float | volume | ) |
|
|
virtual |
The documentation for this class was generated from the following files: