summaryrefslogtreecommitdiff
path: root/src/resources/sdlmusic.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-25 22:15:32 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-25 22:15:32 +0300
commit5ad5c94f789fec341d7103d9853b64ec6213081d (patch)
tree58dfad3cfbb9fdfddd9e06c9d0098cd68a2af747 /src/resources/sdlmusic.cpp
parent8910645b6941f7295dee704fd47933d9ec6927b6 (diff)
downloadmanaplus-5ad5c94f789fec341d7103d9853b64ec6213081d.tar.gz
manaplus-5ad5c94f789fec341d7103d9853b64ec6213081d.tar.bz2
manaplus-5ad5c94f789fec341d7103d9853b64ec6213081d.tar.xz
manaplus-5ad5c94f789fec341d7103d9853b64ec6213081d.zip
Add memory count function into SDLMusic.
Diffstat (limited to 'src/resources/sdlmusic.cpp')
-rw-r--r--src/resources/sdlmusic.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/sdlmusic.cpp b/src/resources/sdlmusic.cpp
index e98a1bdd4..af0fbf3a0 100644
--- a/src/resources/sdlmusic.cpp
+++ b/src/resources/sdlmusic.cpp
@@ -73,3 +73,10 @@ bool SDLMusic::play(const int loops, const int fadeIn)
else
return Mix_FadeInMusicPos(mMusic, loops, 0, 0.0);
}
+
+int SDLMusic::calcMemoryLocal()
+{
+ // +++ not used size of SDL_RWops
+ return sizeof(SDLMusic) +
+ Resource::calcMemoryLocal();
+}