aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/music_node.h
diff options
context:
space:
mode:
authorMarisa-Chan2014-01-17 10:57:29 +0700
committerMarisa-Chan2014-01-17 10:57:29 +0700
commit41415002b223e5ae0e53fb351ee41d8a99fbc920 (patch)
tree50185a4f1b19b5677194282fe4c2fbc90c30f210 /engines/zvision/music_node.h
parent61224e7225061551765c07b691e8d8c5da3434df (diff)
downloadscummvm-rg350-41415002b223e5ae0e53fb351ee41d8a99fbc920.tar.gz
scummvm-rg350-41415002b223e5ae0e53fb351ee41d8a99fbc920.tar.bz2
scummvm-rg350-41415002b223e5ae0e53fb351ee41d8a99fbc920.zip
ZVISION: Implement PanTrack.
Diffstat (limited to 'engines/zvision/music_node.h')
-rw-r--r--engines/zvision/music_node.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/engines/zvision/music_node.h b/engines/zvision/music_node.h
index 973feaf175..9ccf9ab657 100644
--- a/engines/zvision/music_node.h
+++ b/engines/zvision/music_node.h
@@ -45,20 +45,33 @@ public:
*/
bool process(uint32 deltaTimeInMillis);
+ void setVolume(uint8 volume);
+
+ void setPanTrack(int16 pos);
+ void unsetPanTrack();
private:
int32 _timeLeft;
bool _pantrack;
int32 _pantrack_X;
int32 _attenuate;
- int8 _volume;
- int32 _id;
+ uint8 _volume;
bool _loop;
bool _crossfade;
- int32 _crossfade_delta;
+ uint8 _crossfade_target;
int32 _crossfade_time;
+ bool _stereo;
Audio::SoundHandle _handle;
};
+class PanTrackNode : public SideFX {
+public:
+ PanTrackNode(ZVision *engine, uint32 key, uint32 slot, int16 pos);
+ ~PanTrackNode();
+
+private:
+ uint32 _slot;
+};
+
} // End of namespace ZVision
#endif