25 #ifndef BURIED_SOUND_H 26 #define BURIED_SOUND_H 28 #include "audio/mixer.h" 29 #include "common/str.h" 32 class RewindableAudioStream;
51 bool adjustAmbientSoundVolume(byte newVolumeLevel,
bool fade, byte steps, uint32 fadeLength);
52 bool isAmbientSoundPlaying();
54 bool setSecondaryAmbientSound(
const Common::Path &fileName =
Common::Path(),
bool fade =
false, byte finalVolumeLevel = 64);
55 bool adjustSecondaryAmbientSoundVolume(byte newVolumeLevel,
bool fade, byte steps, uint32 fadeLength);
56 uint32 getSecondaryAmbientPosition();
57 bool restartSecondaryAmbientSound();
60 bool playSynchronousAIComment(
const Common::Path &fileName);
61 bool playAsynchronousAIComment(
const Common::Path &fileName);
62 bool isAsynchronousAICommentPlaying();
63 void stopAsynchronousAIComment();
66 int playSoundEffect(
const Common::Path &fileName,
int volume = 127,
bool loop =
false,
bool oneShot =
true);
67 bool playSynchronousSoundEffect(
const Common::Path &fileName,
int volume = 127);
68 bool stopSoundEffect(
int effectID);
69 bool isSoundEffectPlaying (
int effectID);
70 bool adjustSoundEffectSoundVolume(
int effectID, byte newVolumeLevel,
bool fade, byte steps, uint32 fadeLength);
74 bool stopInterfaceSound();
75 bool isInterfaceSoundPlaying();
78 bool startFootsteps(
int footstepsID);
87 void stopSound(
int soundId);
89 void pause(
bool shouldPause);
96 kAmbientIndexBase = 0,
100 kEffectsIndexBase = 2,
120 bool isPlaying()
const;
122 void pause(
bool shouldPause);
131 byte _timedEffectIndex;
132 int _timedEffectSteps;
133 int32 _timedEffectDelta;
134 uint32 _timedEffectStart;
135 uint32 _timedEffectRemaining;
143 Sound *_soundData[kMaxSounds];
147 int _fileIDFootsteps;
SoundType
Definition: mixer.h:62
Definition: agent_evaluation.h:31
Definition: audiostream.h:109