MCPcopy Create free account
hub / github.com/EasyRPG/Player / CreateAndGetMidiOut

Method CreateAndGetMidiOut

src/audio_generic.cpp:201–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201GenericAudioMidiOut* GenericAudio::CreateAndGetMidiOut() {
202 if (!midi_thread) {
203 midi_thread = std::make_unique<GenericAudioMidiOut>();
204 std::string status_message;
205 if (midi_thread->IsInitialized(status_message)) {
206 midi_thread->StartThread();
207 } else {
208 midi_thread.reset();
209 }
210 }
211 return midi_thread.get();
212}
213
214void GenericAudio::SetFormat(int frequency, AudioDecoder::Format format, int channels) {
215 output_format.frequency = frequency;

Callers 1

RefreshAudioMidiMethod · 0.45

Calls 4

StartThreadMethod · 0.80
IsInitializedMethod · 0.45
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected