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

Function stopMidiSound

TheForceEngine/TFE_Audio/midiPlayer.cpp:297–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295 }
296
297 void stopMidiSound()
298 {
299 SDL_LockMutex(s_midiThreadMutex);
300 MidiCmd* midiCmd = midiAllocCmd();
301 if (midiCmd)
302 {
303 midiCmd->cmd = MIDI_STOP_NOTES;
304 }
305 SDL_UnlockMutex(s_midiThreadMutex);
306 }
307
308 void synthesizeMidi(f32* buffer, u32 stereoSampleCount, bool updateBuffer)
309 {

Callers 1

ImStopAllSoundsFunction · 0.85

Calls 1

midiAllocCmdFunction · 0.85

Tested by

no test coverage detected