MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / selectDeviceOutput

Function selectDeviceOutput

TheForceEngine/TFE_Audio/midiPlayer.cpp:196–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194 }
195
196 void selectDeviceOutput(s32 output)
197 {
198 SDL_LockMutex(s_deviceChangeMutex);
199 {
200 if (s_midiDevice)
201 {
202 if (!s_midiDevice->selectOutput(output))
203 {
204 TFE_System::logWrite(LOG_ERROR, "Midi", "Cannot select midi output.");
205 }
206 }
207 }
208 SDL_UnlockMutex(s_deviceChangeMutex);
209 }
210
211 MidiDeviceType getDeviceType()
212 {

Callers 1

configSoundFunction · 0.85

Calls 2

logWriteFunction · 0.85
selectOutputMethod · 0.45

Tested by

no test coverage detected