aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/sound.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/sound.h')
-rw-r--r--engines/gob/sound.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/gob/sound.h b/engines/gob/sound.h
index 2981e222bd..93cb8081ed 100644
--- a/engines/gob/sound.h
+++ b/engines/gob/sound.h
@@ -54,6 +54,7 @@ public:
bool isId(int16 id) { return _dataPtr && _id == id; };
SoundType getType() { return _type; }
+ void set(SoundType type, SoundSource src, byte *data, uint32 dSize);
void load(SoundType type, SoundSource src, byte *data, uint32 dSize);
void free();
void flip();
@@ -104,8 +105,14 @@ public:
void playComposition(int16 *composition, int16 freqVal,
SoundDesc *sndDescs = 0, int8 sndCount = 60);
void stopComposition();
+ void setRepeating(int32 repCount);
void waitEndPlay(bool interruptible = false, bool stopComp = true);
+ static void convToSigned(byte *buffer, int length) {
+ while (length-- > 0)
+ *buffer++ ^= 0x80;
+ }
+
int readBuffer(int16 *buffer, const int numSamples);
bool isStereo() const { return false; }
bool endOfData() const { return _end; }