From 41415002b223e5ae0e53fb351ee41d8a99fbc920 Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Fri, 17 Jan 2014 10:57:29 +0700 Subject: ZVISION: Implement PanTrack. --- engines/zvision/music_node.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'engines/zvision/music_node.h') 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 -- cgit v1.2.3