22#ifndef HOLLYWOOD_MONSTERS_MUSIC_H
23#define HOLLYWOOD_MONSTERS_MUSIC_H
25#include "common/language.h"
26#include "common/path.h"
27#include "hollywood/sound.h"
37 const Common::Path &archiveName()
const {
return _archiveName; }
38 bool playIntroMusic();
39 bool playMusicCue(uint16 cueId,
byte volumePercent = 100,
bool loop =
false);
41 void setVolume(
byte volumePercent);
43 bool isPlaying()
const;
46 bool readCueSpan(
const Common::Path &fileName, uint16 cueId, uint32 &start, uint32 &size)
const;
51 byte _currentVolumePercent;
62 bool playSample(uint16 sampleId,
byte volumePercent = 100,
bool loop =
false,
64 bool playSampleAt(uint16 sampleId,
int worldX,
int viewportX = 0,
byte volumePercent = 100);
65 void setViewportPosition(
int viewportX);
66 void setVolume(
byte volumePercent);
68 bool isPlaying()
const;
69 uint32 lastSampleDurationMillis()
const {
return _lastSampleDurationMillis; }
72 bool readSampleSpan(uint16 sampleId, uint32 &start, uint32 &size)
const;
78 uint32 _lastSampleDurationMillis;
88 const Common::Path &archiveName()
const {
return _archiveName; }
89 bool playSample(uint16 sampleId,
byte volumePercent = 100,
bool loop =
false);
90 bool playSampleLooping(uint16 sampleId,
byte volumePercent = 100);
91 void setVolume(
byte volumePercent);
93 bool isPlaying()
const;
96 bool readSampleSpan(uint16 sampleId, uint32 &start, uint32 &size)
const;
109 bool playSample(
byte soundEffectId,
byte volumePercent = 100,
111 bool playSampleAt(
byte soundEffectId,
int worldX,
int viewportX = 0,
byte volumePercent = 100);
112 void setViewportPosition(
int viewportX);
117 kSoundEffectCount = 16
120 bool readSampleSpan(
byte soundEffectId, uint32 &start, uint32 &size)
const;
121 void stopSample(
byte soundEffectId);
123 const byte *_resourceEntries;
Language
Definition: language.h:45