I've been having some problems with threading because I am very new to it.
I am getting a:
no instance of constructor "std::thread::thread"
matches the argument list
argument types are(void() )
if (CFugue::GetMidiOutPortCount() <= 0)
std::cerr << "No MIDI Output Ports found!";
std::cout << "Playing Notes..";
CFugue::PlayMusicStringWithOpts(_T("C D E F G A B"), MIDI_MAPPER, 20);
TestPlay is a member function, this means its type of
You will need to provide a bound version to allow the thread to call it:
std::bind(&TestPlay, this). Be aware that you MUST make sure the thread does not exist for longer than the object itself or you will cause undefined behavior. (It will execute a function on a non-existant object)