diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-28 19:54:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-28 19:54:02 +0300 |
commit | 442a2dd0a4417182cbdd9f9fefb45bda4914e3d7 (patch) | |
tree | 9208c3b353bfd89009e35f21fa4c29670bfc1579 /src/resources/soundeffect.h | |
parent | 6b2264b7c5f2b1dba3360eb090ad1dd0052d7afb (diff) | |
download | manaverse-442a2dd0a4417182cbdd9f9fefb45bda4914e3d7.tar.gz manaverse-442a2dd0a4417182cbdd9f9fefb45bda4914e3d7.tar.bz2 manaverse-442a2dd0a4417182cbdd9f9fefb45bda4914e3d7.tar.xz manaverse-442a2dd0a4417182cbdd9f9fefb45bda4914e3d7.zip |
Move soundeffect load code into soundloader.
Diffstat (limited to 'src/resources/soundeffect.h')
-rw-r--r-- | src/resources/soundeffect.h | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/src/resources/soundeffect.h b/src/resources/soundeffect.h index 20861f218..bc0a353f6 100644 --- a/src/resources/soundeffect.h +++ b/src/resources/soundeffect.h @@ -35,6 +35,16 @@ class SoundEffect final : public Resource { public: + /** + * Constructor. + */ + SoundEffect(Mix_Chunk *const soundEffect, + const std::string &name) : + Resource(), + mName(name), + mChunk(soundEffect) + { } + A_DELETE_COPY(SoundEffect) /** @@ -43,17 +53,6 @@ class SoundEffect final : public Resource ~SoundEffect(); /** - * Loads a sample from a buffer in memory. - * - * @param rw The SDL_RWops to load the sample data from. - * - * @return <code>NULL</code> if the an error occurred, a valid pointer - * otherwise. - */ - static Resource *load(SDL_RWops *const rw, - const std::string &name); - - /** * Plays the sample. * * @param loops Number of times to repeat the playback. @@ -72,16 +71,6 @@ class SoundEffect final : public Resource { return mName; } protected: - /** - * Constructor. - */ - SoundEffect(Mix_Chunk *const soundEffect, - const std::string &name) : - Resource(), - mName(name), - mChunk(soundEffect) - { } - std::string mName; Mix_Chunk *mChunk; }; |