25 #include "common/mutex.h" 27 #include "engines/grim/imuse/imuse_track.h" 31 #define MAX_IMUSE_TRACKS 16 32 #define MAX_IMUSE_FADETRACKS 16 42 Track *_track[MAX_IMUSE_TRACKS + MAX_IMUSE_FADETRACKS];
50 int32 _attributes[185];
57 int32 makeMixerFlags(int32 flags);
58 static void timerHandler(
void *refConf);
60 void switchToNextRegion(
Track *track);
61 int allocSlot(
int priority);
62 void selectVolumeGroup(
const char *soundName,
int volGroupId);
64 void fadeOutMusic(
int fadeDelay);
65 void fadeOutMusicAndStartNew(
int fadeDelay,
const char *filename,
int hookId,
int vol,
int pan);
66 Track *cloneToFadeOutTrack(
Track *track,
int fadeDelay);
68 void playMusic(
const ImuseTable *table,
int atribPos,
bool sequence);
70 void flushTrack(
Track *track);
73 Imuse(
int fps,
bool demo);
76 bool startSound(
const char *soundName,
int volGroupId,
int hookId,
int volume,
int pan,
int priority,
Track *otherTrack);
77 bool startVoice(
const char *soundName,
int volume = 127,
int pan = 64);
78 void startMusic(
const char *soundName,
int hookId,
int volume,
int pan);
79 void startMusicWithOtherPos(
const char *soundName,
int hookId,
int volume,
int pan,
Track *otherTrack);
80 void startSfx(
const char *soundName,
int priority = 127);
82 void restoreState(
SaveGame *savedState);
83 void saveState(
SaveGame *savedState);
86 Track *findTrack(
const char *soundName);
87 void setPriority(
const char *soundName,
int priority);
88 void setVolume(
const char *soundName,
int volume);
89 int getVolume(
const char *soundName);
90 void setPan(
const char *soundName,
int pan);
91 void setFadePan(
const char *soundName,
int destPan,
int duration);
92 void setFadeVolume(
const char *soundName,
int destVolume,
int duration);
93 void setHookId(
const char *soundName,
int hookId);
94 int getCountPlayedTracks(
const char *soundName);
95 void stopSound(
const char *soundName);
97 void pause(
bool pause);
98 void setMusicState(
int stateId);
99 int setMusicSequence(
int seqId);
100 void refreshScripts();
102 bool isVoicePlaying();
103 char *getCurMusicSoundName();
104 int getCurMusicPan();
105 int getCurMusicVol();
106 bool getSoundStatus(
const char *soundName);
107 int32 getPosIn16msTicks(
const char *soundName);
110 extern Imuse *g_imuse;
Definition: imuse_tables.h:27
Definition: imuse_sndmgr.h:32
Definition: savegame.h:33
Definition: imuse_track.h:37