diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-25 21:18:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-25 21:18:00 +0300 |
commit | 4e59f92aedaa8f19897a1e70fdaa983730d6ba03 (patch) | |
tree | 15dd3fdd58e75bc50bf66e13bcee7b79ef8ba1ac /src/resources/soundeffect.cpp | |
parent | 6ac3afcb4f0a68488fde23afa0aa13362af2edba (diff) | |
download | plus-4e59f92aedaa8f19897a1e70fdaa983730d6ba03.tar.gz plus-4e59f92aedaa8f19897a1e70fdaa983730d6ba03.tar.bz2 plus-4e59f92aedaa8f19897a1e70fdaa983730d6ba03.tar.xz plus-4e59f92aedaa8f19897a1e70fdaa983730d6ba03.zip |
Add memory count function into SoundEffect.
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(); +} |