wavelength 1.0.0
Loading...
Searching...
No Matches
voxtrackmusic.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
6#include "game/playmap.h"
7#include "gs/multimuse.h"
8#include "os/command.h"
9#include "os/ptr.h"
10
19public:
30 VoxTrackMusic(CatchTrackData *pGems, PlayMap *pPlayMap, int nTicksPerBar, int nNumBars);
31
41
48 void Start();
49
56 void Stop();
57
65 void SetMuted(bool bMuted);
66
67private:
74 void StartBar();
75
84 void BuildBars(CatchTrackData *pGems, int nNumBars);
85
86 int mTicksPerBar;
87 PlayMap *mPlayMap;
88 Ptr<Command> mBarCommand;
89 std::vector<MultiMuse *> mBars;
90 int mBar;
91 int mLastBar;
92 int mMuted;
93};
The gems of one catch track, in the order of their ticks.
Definition catchtrackdata.h:14
Map from the bars a song plays to the bars of the song as written, with the loops that repeat stretch...
Definition playmap.h:11
Owner of one reference to an Attachment.
Definition ptr.h:16
void Start()
Schedule the first bar at tick 0.
void Stop()
Withdraw the scheduled command.
void SetMuted(bool bMuted)
Silence the music, or play the current bar again from the current tick.
~VoxTrackMusic()
Withdraw the scheduled command and release the player.
VoxTrackMusic(CatchTrackData *pGems, PlayMap *pPlayMap, int nTicksPerBar, int nNumBars)
Construct the player and collect the music of the gems bar by bar.