mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
MIDI: Use Spans instead of pointer pairs in more places
This commit is contained in:
parent
fb4f04e4d1
commit
835216c581
7 changed files with 45 additions and 66 deletions
|
|
@ -1593,8 +1593,8 @@ public:
|
|||
|
||||
for (uint32_t i = 0; i < list->numPackets; ++i)
|
||||
{
|
||||
toBytestreamDispatcher.dispatch (reinterpret_cast<const uint32_t*> (packet->words),
|
||||
reinterpret_cast<const uint32_t*> (packet->words + packet->wordCount),
|
||||
toBytestreamDispatcher.dispatch ({ reinterpret_cast<const uint32_t*> (packet->words),
|
||||
(size_t) packet->wordCount },
|
||||
static_cast<double> (packet->timeStamp + inOffsetSampleFrame),
|
||||
[this] (const ump::BytestreamMidiView& message)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1486,8 +1486,8 @@ private:
|
|||
|
||||
for (uint32_t i = 0; i < list.numPackets; ++i)
|
||||
{
|
||||
converter.dispatch (reinterpret_cast<const uint32_t*> (packet->words),
|
||||
reinterpret_cast<const uint32_t*> (packet->words + packet->wordCount),
|
||||
converter.dispatch ({ reinterpret_cast<const uint32_t*> (packet->words),
|
||||
(size_t) packet->wordCount },
|
||||
static_cast<int> (packet->timeStamp - (MIDITimeStamp) startTime),
|
||||
[this] (const ump::BytestreamMidiView& message)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue