1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

UMP: Migrate to std::byte

This commit is contained in:
reuk 2023-02-08 20:25:36 +00:00
parent f1f68007c6
commit 78a12d2f57
13 changed files with 230 additions and 191 deletions

View file

@ -35,7 +35,7 @@ namespace universal_midi_packets
struct ToUMP1Converter
{
template <typename Fn>
void convert (const MidiMessage& m, Fn&& fn)
void convert (const BytestreamMidiView& m, Fn&& fn)
{
Conversion::toMidi1 (m, std::forward<Fn> (fn));
}
@ -56,7 +56,7 @@ namespace universal_midi_packets
struct ToUMP2Converter
{
template <typename Fn>
void convert (const MidiMessage& m, Fn&& fn)
void convert (const BytestreamMidiView& m, Fn&& fn)
{
Conversion::toMidi1 (m, [&] (const View& v)
{
@ -98,7 +98,7 @@ namespace universal_midi_packets
}
template <typename Fn>
void convert (const MidiMessage& m, Fn&& fn)
void convert (const BytestreamMidiView& m, Fn&& fn)
{
switch (mode)
{