| 725 | } |
| 726 | |
| 727 | void enqueue(const float* shape, int count, SampleKind kind) |
| 728 | { |
| 729 | // Bound the backlog so a burst can't lag the pen seconds behind |
| 730 | // real time; newest data wins, matching the TX queue philosophy. |
| 731 | if (m_pending.size() > 96) |
| 732 | m_pending.clear(); |
| 733 | for (int i = 0; i < count; ++i) |
| 734 | m_pending.append({ shape[i], quint8(kind) }); |
| 735 | } |
| 736 | |
| 737 | void wake() |
| 738 | { |
no test coverage detected