| 131 | } |
| 132 | |
| 133 | void GenericAudioMidiOut::StartThread() { |
| 134 | assert(!thread_started); |
| 135 | thread_started = true; |
| 136 | midi_thread = std::thread(&GenericAudioMidiOut::ThreadFunction, this); |
| 137 | } |
| 138 | |
| 139 | void GenericAudioMidiOut::StopThread() { |
| 140 | stop_thread.store(true); |