diff options
author | Robert Špalek | 2009-10-11 23:01:59 +0000 |
---|---|---|
committer | Robert Špalek | 2009-10-11 23:01:59 +0000 |
commit | f71b32dd96cc524fbb433752ea2ead51e1cf02a4 (patch) | |
tree | 51ad784a13c13329955c7859aef83862b790983b /engines/draci/animation.h | |
parent | e2db155b1a82150a4c651a643b6a4343e810b8e9 (diff) | |
download | scummvm-rg350-f71b32dd96cc524fbb433752ea2ead51e1cf02a4.tar.gz scummvm-rg350-f71b32dd96cc524fbb433752ea2ead51e1cf02a4.tar.bz2 scummvm-rg350-f71b32dd96cc524fbb433752ea2ead51e1cf02a4.zip |
Loading and caching sound samples in memory.
The sounds are not played yet, but the infrastructure is getting ready.
svn-id: r44957
Diffstat (limited to 'engines/draci/animation.h')
-rw-r--r-- | engines/draci/animation.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/draci/animation.h b/engines/draci/animation.h index e8b09823e6..8dc596406d 100644 --- a/engines/draci/animation.h +++ b/engines/draci/animation.h @@ -27,6 +27,7 @@ #define DRACI_ANIMATION_H #include "draci/sprite.h" +#include "draci/sound.h" namespace Draci { @@ -76,7 +77,7 @@ public: void nextFrame(bool force = false); void drawFrame(Surface *surface); - void addFrame(Drawable *frame); + void addFrame(Drawable *frame, const SoundSample *sample); Drawable *getFrame(int frameNum = kCurrentFrame); void setCurrentFrame(uint frame); uint currentFrameNum() const; @@ -140,6 +141,11 @@ private: /** Array of frames of the animation. The animation object owns these pointers. */ Common::Array<Drawable *> _frames; + /** Array of samples played during the animation. The animation + * object doesn't own these pointers, but they are stored in the + * cache. + */ + Common::List<const SoundSample *> _samples; AnimationCallback _callback; |