diff options
Diffstat (limited to 'src/resources/soundeffect.cpp')
-rw-r--r-- | src/resources/soundeffect.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/soundeffect.cpp b/src/resources/soundeffect.cpp index a797a9db1..7f43e2e44 100644 --- a/src/resources/soundeffect.cpp +++ b/src/resources/soundeffect.cpp @@ -56,3 +56,10 @@ bool SoundEffect::play(const int loops, const int volume, return Mix_PlayChannel(channel, mChunk, loops) != -1; } + +int SoundEffect::calcMemoryLocal() +{ + return sizeof(SoundEffect) + + sizeof(SDL_AudioSpec) + + Resource::calcMemoryLocal(); +} |