aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/music.h
diff options
context:
space:
mode:
authorPeter Kohaut2018-03-24 17:20:27 +0100
committerPeter Kohaut2018-03-24 17:28:34 +0100
commit5e9985bd6e4d136ec20e5e3be7589d34051227f1 (patch)
treee8b8f70ad0f509ec7b919c68c2f09bd2bbf0e8a1 /engines/bladerunner/music.h
parent2a646f8cc287a98f90e561ce8072c2af4322fd22 (diff)
downloadscummvm-rg350-5e9985bd6e4d136ec20e5e3be7589d34051227f1.tar.gz
scummvm-rg350-5e9985bd6e4d136ec20e5e3be7589d34051227f1.tar.bz2
scummvm-rg350-5e9985bd6e4d136ec20e5e3be7589d34051227f1.zip
BLADERUNNER: Load game methods
save methods update replaced few char* with Common::String changed few pointers to references
Diffstat (limited to 'engines/bladerunner/music.h')
-rw-r--r--engines/bladerunner/music.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/bladerunner/music.h b/engines/bladerunner/music.h
index de19942a20..b4dc284def 100644
--- a/engines/bladerunner/music.h
+++ b/engines/bladerunner/music.h
@@ -30,6 +30,8 @@ namespace BladeRunner {
class AudStream;
class BladeRunnerEngine;
+class SaveFileReadStream;
+class SaveFileWriteStream;
class Music {
struct Track {
@@ -47,9 +49,9 @@ class Music {
Common::Mutex _mutex;
int _musicVolume;
int _channel;
- int _isNextPresent;
- int _isPlaying;
- int _isPaused;
+ bool _isNextPresent;
+ bool _isPlaying;
+ bool _isPaused;
Track _current;
Track _next;
byte *_data;
@@ -68,6 +70,9 @@ public:
int getVolume();
void playSample();
+ void save(SaveFileWriteStream &f);
+ void load(SaveFileReadStream &f);
+
private:
void adjustVolume(int volume, int delay);
void adjustPan(int pan, int delay);