summaryrefslogtreecommitdiff
path: root/src/resources/soundeffect.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-28 19:54:02 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-28 19:54:02 +0300
commit442a2dd0a4417182cbdd9f9fefb45bda4914e3d7 (patch)
tree9208c3b353bfd89009e35f21fa4c29670bfc1579 /src/resources/soundeffect.cpp
parent6b2264b7c5f2b1dba3360eb090ad1dd0052d7afb (diff)
downloadmv-442a2dd0a4417182cbdd9f9fefb45bda4914e3d7.tar.gz
mv-442a2dd0a4417182cbdd9f9fefb45bda4914e3d7.tar.bz2
mv-442a2dd0a4417182cbdd9f9fefb45bda4914e3d7.tar.xz
mv-442a2dd0a4417182cbdd9f9fefb45bda4914e3d7.zip
Move soundeffect load code into soundloader.
Diffstat (limited to 'src/resources/soundeffect.cpp')
-rw-r--r--src/resources/soundeffect.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/resources/soundeffect.cpp b/src/resources/soundeffect.cpp
index 4491e993a..1b1026783 100644
--- a/src/resources/soundeffect.cpp
+++ b/src/resources/soundeffect.cpp
@@ -31,25 +31,6 @@ SoundEffect::~SoundEffect()
Mix_FreeChunk(mChunk);
}
-Resource *SoundEffect::load(SDL_RWops *const rw,
- const std::string &name)
-{
- if (!rw)
- return nullptr;
- // Load the music data and free the RWops structure
- Mix_Chunk *const tmpSoundEffect = Mix_LoadWAV_RW(rw, 1);
-
- if (tmpSoundEffect)
- {
- return new SoundEffect(tmpSoundEffect, name);
- }
- else
- {
- logger->log("Error, failed to load sound effect: %s", Mix_GetError());
- return nullptr;
- }
-}
-
bool SoundEffect::play(const int loops, const int volume,
const int channel) const
{