summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resources/sdlmusic.cpp7
-rw-r--r--src/resources/sdlmusic.h2
2 files changed, 9 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();
+}
diff --git a/src/resources/sdlmusic.h b/src/resources/sdlmusic.h
index c1a34f7da..b6f8f3150 100644
--- a/src/resources/sdlmusic.h
+++ b/src/resources/sdlmusic.h
@@ -70,6 +70,8 @@ class SDLMusic final : public Resource
*/
bool play(const int loops = -1, const int fadeIn = 0);
+ int calcMemoryLocal() override final;
+
protected:
/**
* Constructor.