fmod error solve
This commit is contained in:
parent
b5e08cedd5
commit
ec790fd381
4 changed files with 74 additions and 75 deletions
|
@ -8,12 +8,12 @@
|
|||
|
||||
class AudioEmitter {
|
||||
private:
|
||||
std::unique_ptr<FMOD::System> system;
|
||||
FMOD::Sound* metronome_Sound;
|
||||
FMOD::System* system{ nullptr };
|
||||
FMOD::Sound* metronome_Sound{ nullptr };
|
||||
FMOD::Channel *timer{nullptr};
|
||||
std::vector<std::unique_ptr<FMOD::Sound>> chords;
|
||||
std::vector<std::unique_ptr<FMOD::Sound>> drums;
|
||||
std::vector<std::unique_ptr<FMOD::Sound>> notes;
|
||||
std::vector<FMOD::Sound*> chords;
|
||||
std::vector<FMOD::Sound*> drums;
|
||||
std::vector<FMOD::Sound*> notes;
|
||||
std::vector<std::vector<float>> markov_matrix_chords;
|
||||
std::vector<std::vector<float>> markov_matrix_melody;
|
||||
int nbr_melo_max{4};
|
||||
|
@ -27,9 +27,9 @@ private:
|
|||
public:
|
||||
int tempo{ 170 };
|
||||
AudioEmitter();
|
||||
~AudioEmitter();
|
||||
std::vector<std::pair<float, int>> generateMusic();
|
||||
void audioUpdate();
|
||||
void audioEnd();
|
||||
int firstChord();
|
||||
int nextChord(int currentChord);
|
||||
int firstNote();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue