diff options
author | Paul Gilbert | 2014-08-27 22:13:43 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-27 22:13:43 -0400 |
commit | c0a7852662be724077921bcf9b9bb0bf2da2dfff (patch) | |
tree | c8487eeafdadd15a81d5918b951014420be5a1b7 /engines/access/sound.h | |
parent | 455011c37e20fb2d859e1c3f04650e369844c921 (diff) | |
download | scummvm-rg350-c0a7852662be724077921bcf9b9bb0bf2da2dfff.tar.gz scummvm-rg350-c0a7852662be724077921bcf9b9bb0bf2da2dfff.tar.bz2 scummvm-rg350-c0a7852662be724077921bcf9b9bb0bf2da2dfff.zip |
ACCESS: Refactor the file manager to return resource structures
Diffstat (limited to 'engines/access/sound.h')
-rw-r--r-- | engines/access/sound.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/engines/access/sound.h b/engines/access/sound.h index e0992db0e2..284fa845e7 100644 --- a/engines/access/sound.h +++ b/engines/access/sound.h @@ -25,6 +25,7 @@ #include "common/scummsys.h" #include "audio/mixer.h" +#include "access/files.h" #define MAX_SOUNDS 20 @@ -33,10 +34,6 @@ namespace Access { class AccessEngine; class SoundManager { - struct SoundEntry { - byte *_data; - uint32 _size; - }; private: AccessEngine *_vm; Audio::Mixer *_mixer; @@ -44,10 +41,9 @@ private: void playSound(byte *data, uint32 size); public: - SoundEntry _soundTable[MAX_SOUNDS]; + Resource *_soundTable[MAX_SOUNDS]; int _soundPriority[MAX_SOUNDS]; - byte *_music; - int _midiSize; + Resource *_music; bool _musicRepeat; int _soundFrame; bool _soundFlag; @@ -59,7 +55,7 @@ public: void playSound(int soundIndex); - byte *loadSound(int fileNum, int subfile); + Resource *loadSound(int fileNum, int subfile); void loadSounds(Common::Array<RoomInfo::SoundIdent> &sounds); void midiPlay(); |