| 49 | } |
| 50 | |
| 51 | void 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 | } |
nothing calls this directly
no test coverage detected