MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / Process

Method Process

Source/NoteOutputQueue.cpp:51–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void NoteOutputQueue::Process()
52{
53 assert(IsAudioThread());
54
55 PendingNoteOutput output;
56 while (true)
57 {
58 bool hasData = mQueue.try_dequeue(output);
59 if (!hasData)
60 break;
61
62 if (output.isFlush)
63 {
64 output.target->Flush(output.time);
65 }
66 else
67 {
68 //ofLog() << "playing queued note " << output.time << " " << output.pitch << " " << output.velocity << " " << gTime;
69 output.target->PlayNoteInternal(output.time, output.pitch, output.velocity, output.voiceIdx, output.modulation, false);
70 }
71 }
72}

Callers

nothing calls this directly

Calls 3

IsAudioThreadFunction · 0.85
PlayNoteInternalMethod · 0.80
FlushMethod · 0.45

Tested by

no test coverage detected