diff options
author | Paweł Kołodziejski | 2002-09-02 07:53:43 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-09-02 07:53:43 +0000 |
commit | ca03c9b5fc58b6beb5dbc6c1307464ef9e2c9f45 (patch) | |
tree | 539f84d8edc7002ccb01278aa06a174ab53bda3d /scumm/sound.h | |
parent | 97ef7c2a34c4077d6d046f0aabce7e1dde04e092 (diff) | |
download | scummvm-rg350-ca03c9b5fc58b6beb5dbc6c1307464ef9e2c9f45.tar.gz scummvm-rg350-ca03c9b5fc58b6beb5dbc6c1307464ef9e2c9f45.tar.bz2 scummvm-rg350-ca03c9b5fc58b6beb5dbc6c1307464ef9e2c9f45.zip |
changed file io in sounds to class File
svn-id: r4896
Diffstat (limited to 'scumm/sound.h')
-rw-r--r-- | scumm/sound.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scumm/sound.h b/scumm/sound.h index 1e650018cd..73dc23eeed 100644 --- a/scumm/sound.h +++ b/scumm/sound.h @@ -25,6 +25,7 @@ #include "sound/mixer.h" class Scumm; +class File; class Sound { @@ -52,7 +53,7 @@ enum { int _talkChannel; /* Mixer channel actor is talking on */ - void *_sfxFile; + File *_sfxFile; uint32 _talk_sound_a, _talk_sound_b; byte _talk_sound_mode; bool _mouthSyncMode; @@ -71,7 +72,7 @@ enum { int _cached_tracks[CACHE_TRACKS]; struct mad_header _mad_header[CACHE_TRACKS]; long _mp3_size[CACHE_TRACKS]; - FILE *_mp3_tracks[CACHE_TRACKS]; + File *_mp3_tracks[CACHE_TRACKS]; int _mp3_index; bool _mp3_cd_playing; #endif @@ -109,8 +110,8 @@ public: void talkSound(uint32 a, uint32 b, int mode); void setupSound(); void pauseSounds(bool pause); - int startSfxSound(void *file, int file_size); - void * openSfxFile(); + int startSfxSound(File *file, int file_size); + File * openSfxFile(); void stopSfxSound(); bool isSfxFinished(); uint32 decode12BitsSample(byte * src, byte ** dst, uint32 size); |