22 #ifndef ACCESS_SOUND_H 23 #define ACCESS_SOUND_H 25 #include "common/scummsys.h" 26 #include "access/files.h" 27 #include "audio/midiplayer.h" 44 SoundEntry() { _res =
nullptr; _priority = 0; }
53 QueuedSound() : _stream(
nullptr), _soundId(-1) {}
54 QueuedSound(
Audio::AudioStream *stream,
int soundId) : _stream(stream), _soundId(soundId) {}
64 void playSound(
Resource *res,
int priority,
bool loop,
int soundIndex = -1);
66 bool isSoundQueued(
int soundId)
const;
74 void loadSoundTable(
int idx,
int fileNum,
int subfile,
int priority = 1);
76 void playSound(
int soundIndex,
bool loop =
false);
77 void checkSoundQueue();
80 Resource *loadSound(
int fileNum,
int subfile);
94 void send(uint32 b)
override;
106 bool checkMidiDone();
112 void newMusic(
int musicId,
int mode);
116 void loadMusic(
int fileNum,
int subfile);
119 void setLoop(
bool loop);
Definition: midiplayer.h:63
Definition: audiostream.h:50