diff options
author | Kari Salminen | 2008-08-13 11:57:48 +0000 |
---|---|---|
committer | Kari Salminen | 2008-08-13 11:57:48 +0000 |
commit | 09762ac7a6c7e201b44466b8286aa1e53e7fadaa (patch) | |
tree | a2bb989bdc2299c62ffde7be1fd8e25bcb70308e /engines/agi/sound.h | |
parent | f69cc559b9d35526b25ac76bcc82046471b39d06 (diff) | |
download | scummvm-rg350-09762ac7a6c7e201b44466b8286aa1e53e7fadaa.tar.gz scummvm-rg350-09762ac7a6c7e201b44466b8286aa1e53e7fadaa.tar.bz2 scummvm-rg350-09762ac7a6c7e201b44466b8286aa1e53e7fadaa.zip |
Fixed initialization of some SoundMgr-class's member variables. Moved _sndBuffer's allocation to SoundMgr's constructor and its deallocation to the destructor. Made fillAudio SoundMgr's method and removed a superfluous global static variable 'int16 *buffer'. Should help with the occasional crashes when starting the first sound in an AGI game.
svn-id: r33822
Diffstat (limited to 'engines/agi/sound.h')
-rw-r--r-- | engines/agi/sound.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/agi/sound.h b/engines/agi/sound.h index f1c2782421..a1f079891f 100644 --- a/engines/agi/sound.h +++ b/engines/agi/sound.h @@ -472,6 +472,7 @@ private: const int16 *_waveform; void premixerCall(int16 *buf, uint len); + void fillAudio(void *udata, int16 *stream, uint len); public: void unloadSound(int); |