wavelength 1.0.0
Loading...
Searching...
No Matches
metamusicsong.h
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4
5#include "met/mix.h"
7#include "os/string.h"
8#include "script/dataarray.h"
9
16public:
25 MetaMusicSong(Mix *pMix, DataArray *pConfig);
26
34
41 void StartLoad();
42
49 void Poll();
50
58 int IsLoaded() const;
59
67 const char *BankFile() const;
68
76
84 void AddTracks();
85
86private:
87 std::unique_ptr<MixMidiBuilder> mBuilder;
88 Mix *mMix;
89 String mBankFile;
90 int mLoaded;
91 DataArray *mConfig;
92};
Reference-counted array of script data nodes.
Definition dataarray.h:20
void Poll()
Read more of the song, and hand its tracks to the music once the file has been read.
int IsLoaded() const
Report whether the tracks have been handed to the music.
~MetaMusicSong()
Release the reader of the song.
const char * BankFile() const
Report the sample bank of the song.
void AddTracks()
Hand each track the reader built to the music, and then the track names of each mix entry.
MetaMusicSong(Mix *pMix, DataArray *pConfig)
Build the song and the path of its sample bank.
void StartLoad()
Start reading the song's MIDI file.
void FindBankFile()
Set the bank file to the bank_file entry, beside the configuration file of the entry.
The front-end music: the tracks of the current menu song and the mixes that switch them on and off on...
Definition mix.h:22
Growable text buffer that is also a PrnStream.
Definition string.h:19