aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/sound.h
diff options
context:
space:
mode:
authorMatthew Hoops2011-09-05 15:47:19 -0400
committerMatthew Hoops2011-09-05 15:47:19 -0400
commitfe99e953194c356136cd1e2edb87142e2c18b1e5 (patch)
treee4dc077b70be0e2624bbdae75fa517a9cb1b7369 /engines/pegasus/sound.h
parent7070d886d9363935d0f4f73817190b2bf0a3666a (diff)
downloadscummvm-rg350-fe99e953194c356136cd1e2edb87142e2c18b1e5.tar.gz
scummvm-rg350-fe99e953194c356136cd1e2edb87142e2c18b1e5.tar.bz2
scummvm-rg350-fe99e953194c356136cd1e2edb87142e2c18b1e5.zip
PEGASUS: Stub off spot sound code
Diffstat (limited to 'engines/pegasus/sound.h')
-rwxr-xr-xengines/pegasus/sound.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/engines/pegasus/sound.h b/engines/pegasus/sound.h
index 62ce51a605..99607d432c 100755
--- a/engines/pegasus/sound.h
+++ b/engines/pegasus/sound.h
@@ -30,14 +30,13 @@
#include "common/str.h"
namespace Audio {
- class AudioStream;
- class RewindableAudioStream;
+ class SeekableAudioStream;
}
namespace Pegasus {
// TODO!
-//class MMSoundFader;
+//class SoundFader;
// Things you might want to do with sound:
// Start it
@@ -59,10 +58,17 @@ public:
// not using the resource fork string resources.
void initFromAIFFFile(const Common::String &fileName);
+ // Unlike the original game, we're going to use a regular
+ // audio stream for sound spots. The original treated them
+ // as movies.
+ void initFromQuickTime(const Common::String &fileName);
+
void disposeSound();
bool isSoundLoaded() const;
void playSound();
void loopSound();
+ void playSoundSegment(uint32 start, uint32 end);
+ void loopSoundSegment(uint32 start, uint32 end);
void stopSound();
void setVolume(const uint16 volume);
bool isPlaying();
@@ -71,7 +77,7 @@ public:
//void attachFader(SoundFader *fader);
protected:
- Audio::RewindableAudioStream *_aiffStream;
+ Audio::SeekableAudioStream *_stream;
Audio::SoundHandle _handle;
byte _volume;