22 #ifndef STARTREK_SOUND_H 23 #define STARTREK_SOUND_H 25 #include "startrek/soundeffects.h" 26 #include "startrek/startrek.h" 28 #include "audio/midiparser.h" 29 #include "audio/mididrv.h" 30 #include "audio/mixer.h" 42 const int MAX_SFX_PLAYING = 4;
44 const int NUM_MIDI_SLOTS = 8;
58 void clearAllMidiSlots();
62 void playMidiTrack(MidiTracks track);
63 void playMidiTrackInSlot(
int slot, MidiTracks track);
66 void playMidiMusicTracks(MidiTracks startTrack, MidiLoopType loopType = kLoopTypeNone);
69 void stopAllVocSounds();
70 void stopPlayingSpeech();
71 void playSoundEffectIndex(SoundEffects index);
72 void setMusicEnabled(
bool enable);
73 void setSfxEnabled(
bool enable);
76 void checkLoopMusic();
83 void clearMidiSlot(
int slot);
90 byte *_loadedSoundData;
91 int _loadedSoundDataSize;
102 MidiTracks _loopingMidiTrack;
106 static void midiDriverCallback(
void *data);
Definition: mididrv.h:309
Definition: algorithm.h:29
Definition: startrek.h:239
Definition: midiparser.h:289