summaryrefslogtreecommitdiff
path: root/src/resources/soundeffect.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-29 03:41:11 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-29 03:41:11 +0300
commit7c020abf511236e2c56fa1c6b6c1b8f248aa8582 (patch)
treeaae0dbb1e1203ea33d1dbf1ff4185268d02a1943 /src/resources/soundeffect.cpp
parentfdfd38278cba5fa37d203d0d29b4981e400a529a (diff)
downloadManaVerse-7c020abf511236e2c56fa1c6b6c1b8f248aa8582.tar.gz
ManaVerse-7c020abf511236e2c56fa1c6b6c1b8f248aa8582.tar.bz2
ManaVerse-7c020abf511236e2c56fa1c6b6c1b8f248aa8582.tar.xz
ManaVerse-7c020abf511236e2c56fa1c6b6c1b8f248aa8582.zip
Add name into memory usage tree for SDLMusic and SoundEffect.
Diffstat (limited to 'src/resources/soundeffect.cpp')
-rw-r--r--src/resources/soundeffect.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/soundeffect.cpp b/src/resources/soundeffect.cpp
index 9cf511965..f817f9c44 100644
--- a/src/resources/soundeffect.cpp
+++ b/src/resources/soundeffect.cpp
@@ -31,7 +31,8 @@ SoundEffect::~SoundEffect()
Mix_FreeChunk(mChunk);
}
-Resource *SoundEffect::load(SDL_RWops *const rw)
+Resource *SoundEffect::load(SDL_RWops *const rw,
+ const std::string &name)
{
if (!rw)
return nullptr;
@@ -40,7 +41,7 @@ Resource *SoundEffect::load(SDL_RWops *const rw)
if (tmpSoundEffect)
{
- return new SoundEffect(tmpSoundEffect);
+ return new SoundEffect(tmpSoundEffect, name);
}
else
{