28 static void *
operator new(
size_t nSize) {
29 return PoolMemAlloc(
static_cast<int>(nSize),
"BackMusic", 0);
37 static void operator delete(
void *pBlock) {
51 BackMusic(
const char *pszName,
int nIntroBars,
int nNumBars,
int nTicksPerBar);
107 std::vector<Ptr<Muse> > mBars;
void Start(PlayMap *pPlayMap)
Start the music by itself, unless it plays.
BackMusic(const char *pszName, int nIntroBars, int nNumBars, int nTicksPerBar)
Construct music with no muse for any bar.
const char * GetName() const
Report the name of the track.
void Stop()
Stop the music, if it plays.
void SetBar(int nBar, Muse *pMuse)
Set the muse of a bar.
~BackMusic()
Stop the music and release it.
Piece of MIDI performance that a Scheduler plays.
Definition muse.h:12
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
Growable text buffer that is also a PrnStream.
Definition string.h:19
void * PoolMemAlloc(int nSize, const char *pszTag, int nAlign)
Allocate a block from the pool heaps and bill it to a tag.
void PoolMemFree(void *pBlock)
Return a block PoolMemAlloc() handed out to the pool heap that owns it.