Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V.3.0.0rc #98

Merged
merged 68 commits into from
Dec 30, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
e12eb30
debug text update (very minor update)
lathoub Dec 21, 2020
28a84a7
debug update
lathoub Dec 21, 2020
9d47f31
deprecate Error callback, replace with Exception callback
lathoub Dec 21, 2020
1db81ad
removed error callback, replace with Exception
lathoub Dec 21, 2020
4e5cba4
NULL => nullptr
lathoub Dec 21, 2020
a7917d1
Update library.properties
lathoub Dec 21, 2020
80624d7
Update ESP32_Callbacks.ino
lathoub Dec 21, 2020
38a07cb
advance callbacks, added sendRtp
lathoub Dec 21, 2020
4120625
extented callbacks now optional to save weight
lathoub Dec 22, 2020
7bf2d0d
minimum memory usage example
lathoub Dec 22, 2020
397eab2
renamed EthernetShield to AVR for AVR type Arduino's
lathoub Dec 22, 2020
e29094d
min memory setup, #defines for add functions
lathoub Dec 22, 2020
a874521
Update README.md
lathoub Dec 22, 2020
2777a99
Update README.md
lathoub Dec 23, 2020
cd5a8fd
Update README.md
lathoub Dec 23, 2020
d835296
further weight reduction #define ONE_PARTICIPANT
lathoub Dec 23, 2020
2c6b047
Merge branch 'v.3.0.0rc' of https://github.com/lathoub/Arduino-AppleM…
lathoub Dec 23, 2020
cf1ba1a
Update README.md
lathoub Dec 23, 2020
f425163
furtner memory reduction
lathoub Dec 23, 2020
2824421
Merge branch 'v.3.0.0rc' of https://github.com/lathoub/Arduino-AppleM…
lathoub Dec 23, 2020
952c31d
Update README.md
lathoub Dec 23, 2020
8654ca3
Update README.md
lathoub Dec 23, 2020
8a138d1
Update README.md
lathoub Dec 23, 2020
777a698
Update AVR_NoteOnOffEverySec.ino
lathoub Dec 23, 2020
3d98cf9
Merge branch 'v.3.0.0rc' of https://github.com/lathoub/Arduino-AppleM…
lathoub Dec 23, 2020
df64cae
added Directory
lathoub Dec 24, 2020
b4a0b24
joined USE_EXT_CALLBACKS, LATENCY_CALCULATION
lathoub Dec 24, 2020
68c9082
Update AppleMIDI.h
lathoub Dec 24, 2020
88850b3
fixed crash when session name is too long (> MaxSessionName)
lathoub Dec 28, 2020
095e6d4
Create ESP32_NoteOnOffEverySec.ino
lathoub Dec 28, 2020
2f6d510
get* as const functions
lathoub Dec 28, 2020
613b767
Update README.md
lathoub Dec 28, 2020
4526bfb
Update AppleMIDI.h
lathoub Dec 28, 2020
d69f41d
Merge branch 'v.3.0.0rc' of https://github.com/lathoub/Arduino-AppleM…
lathoub Dec 28, 2020
9303945
removed extented callback from wESP32 demo
lathoub Dec 28, 2020
49e5121
added sentRtpMidiCallback, renamed send -> sent
lathoub Dec 28, 2020
2467d2d
added ssrc to ReceiveMidi calls (private functions)
lathoub Dec 28, 2020
5e3678d
receiverFeedback test is < not !=
lathoub Dec 29, 2020
ce7e8a7
receivedRtpCallback with ssrc, disconnect with ssrc
lathoub Dec 29, 2020
296717c
Update .travis.yml
lathoub Dec 29, 2020
8117dd3
Update README.md
lathoub Dec 29, 2020
9294a50
Update README.md
lathoub Dec 29, 2020
299004c
Update .travis.yml
lathoub Dec 29, 2020
2739ce6
Update .travis.yml
lathoub Dec 29, 2020
3c95ee1
Update .travis.yml
lathoub Dec 29, 2020
4f7f9ab
Update .travis.yml
lathoub Dec 29, 2020
5aa8c69
update examples
lathoub Dec 29, 2020
9f08a63
Merge branch 'v.3.0.0rc' of https://github.com/lathoub/Arduino-AppleM…
lathoub Dec 29, 2020
9c6d4c3
Update .travis.yml
lathoub Dec 29, 2020
33be4a4
fixing examples
lathoub Dec 29, 2020
ba3a300
Merge branch 'v.3.0.0rc' of https://github.com/lathoub/Arduino-AppleM…
lathoub Dec 29, 2020
8936cd7
Update .travis.yml
lathoub Dec 29, 2020
08366e5
Update .travis.yml
lathoub Dec 29, 2020
ca50b41
Update .travis.yml
lathoub Dec 29, 2020
e069ffb
Update .travis.yml
lathoub Dec 29, 2020
0fc91fd
Update .travis.yml
lathoub Dec 29, 2020
122f778
Create AVR_E3_NoteOnOffEverySec.ino
lathoub Dec 29, 2020
4e6f680
Merge branch 'v.3.0.0rc' of https://github.com/lathoub/Arduino-AppleM…
lathoub Dec 29, 2020
c0a99a5
Update .travis.yml
lathoub Dec 30, 2020
09f5f16
Update wESP32_NoteOnOffEverySec.ino
lathoub Dec 30, 2020
608ddd1
Merge branch 'v.3.0.0rc' of https://github.com/lathoub/Arduino-AppleM…
lathoub Dec 30, 2020
79cbccf
Update .travis.yml
lathoub Dec 30, 2020
ebf3cb5
Update README.md
lathoub Dec 30, 2020
2bb78db
Update README.md
lathoub Dec 30, 2020
c9a3e81
Update README.md
lathoub Dec 30, 2020
24e92b8
Update README.md
lathoub Dec 30, 2020
299286b
Update README.md
lathoub Dec 30, 2020
4dd5446
Update README.md
lathoub Dec 30, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added ssrc to ReceiveMidi calls (private functions)
  • Loading branch information
lathoub committed Dec 28, 2020
commit 2467d2d8add48b9dd093c5cd69f98a1e27104b89
6 changes: 3 additions & 3 deletions src/AppleMIDI.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ class AppleMIDISession

// rtpMIDI callback from parser
void ReceivedRtp(const Rtp_t &);
void StartReceivedMidi();
void ReceivedMidi(byte data);
void EndReceivedMidi();
void StartReceivedMidi(const ssrc_t&);
void ReceivedMidi(const ssrc_t&, byte data);
void EndReceivedMidi(const ssrc_t&);

// Helpers
void writeInvitation (UdpClass &, const IPAddress &, const uint16_t &, AppleMIDI_Invitation_t &, const byte *command);
Expand Down
12 changes: 6 additions & 6 deletions src/AppleMIDI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1035,31 +1035,31 @@ void AppleMIDISession<UdpClass, Settings, Platform>::ReceivedRtp(const Rtp_t& rt
}

template <class UdpClass, class Settings, class Platform>
void AppleMIDISession<UdpClass, Settings, Platform>::StartReceivedMidi()
void AppleMIDISession<UdpClass, Settings, Platform>::StartReceivedMidi(const ssrc_t& ssrc)
{
#ifdef USE_EXT_CALLBACKS
if (nullptr != _startReceivedMidiByteCallback)
_startReceivedMidiByteCallback(0);
_startReceivedMidiByteCallback(ssrc);
#endif
}

template <class UdpClass, class Settings, class Platform>
void AppleMIDISession<UdpClass, Settings, Platform>::ReceivedMidi(byte value)
void AppleMIDISession<UdpClass, Settings, Platform>::ReceivedMidi(const ssrc_t& ssrc, byte value)
{
#ifdef USE_EXT_CALLBACKS
if (nullptr != _receivedMidiByteCallback)
_receivedMidiByteCallback(0, value);
_receivedMidiByteCallback(ssrc, value);
#endif

inMidiBuffer.push_back(value);
}

template <class UdpClass, class Settings, class Platform>
void AppleMIDISession<UdpClass, Settings, Platform>::EndReceivedMidi()
void AppleMIDISession<UdpClass, Settings, Platform>::EndReceivedMidi(const ssrc_t& ssrc)
{
#ifdef USE_EXT_CALLBACKS
if (nullptr != _endReceivedMidiByteCallback)
_endReceivedMidiByteCallback(0);
_endReceivedMidiByteCallback(ssrc);
#endif
}

Expand Down
26 changes: 13 additions & 13 deletions src/rtpMIDI_Parser_MidiCommandSection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ size_t decodeMidi(RtpBuffer_t &buffer, uint8_t &runningstatus)
* not be intermingled with other MIDI-commands, so we handle this case right here and return */
if (octet >= 0xf8)
{
session->StartReceivedMidi();
session->ReceivedMidi(buffer[0]);
session->EndReceivedMidi();
session->StartReceivedMidi(session->getSynchronizationSource());
session->ReceivedMidi(session->getSynchronizationSource(), buffer[0]);
session->EndReceivedMidi(session->getSynchronizationSource());

return 1;
}
Expand Down Expand Up @@ -145,10 +145,10 @@ size_t decodeMidi(RtpBuffer_t &buffer, uint8_t &runningstatus)
break;
}

session->StartReceivedMidi();
session->StartReceivedMidi(session->getSynchronizationSource());
for (size_t j = 0; j < consumed; j++)
session->ReceivedMidi(buffer[j]);
session->EndReceivedMidi();
session->ReceivedMidi(session->getSynchronizationSource(), buffer[j]);
session->EndReceivedMidi(session->getSynchronizationSource());

return consumed;
}
Expand All @@ -175,10 +175,10 @@ size_t decodeMidi(RtpBuffer_t &buffer, uint8_t &runningstatus)
break;
}

session->StartReceivedMidi();
session->StartReceivedMidi(session->getSynchronizationSource());
for (size_t j = 0; j < consumed; j++)
session->ReceivedMidi(buffer[j]);
session->EndReceivedMidi();
session->ReceivedMidi(session->getSynchronizationSource(), buffer[j]);
session->EndReceivedMidi(session->getSynchronizationSource());

return consumed;
}
Expand Down Expand Up @@ -208,11 +208,11 @@ size_t decodeMidiSysEx(RtpBuffer_t &buffer)
consumed--;

// send MIDI data
session->StartReceivedMidi();
session->StartReceivedMidi(session->getSynchronizationSource());
for (size_t j = 0; j < consumed; j++)
session->ReceivedMidi(buffer[j]);
session->ReceivedMidi(MIDI_NAMESPACE::MidiType::SystemExclusiveStart);
session->EndReceivedMidi();
session->ReceivedMidi(session->getSynchronizationSource(), buffer[j]);
session->ReceivedMidi(session->getSynchronizationSource(), MIDI_NAMESPACE::MidiType::SystemExclusiveStart);
session->EndReceivedMidi(session->getSynchronizationSource());

// Remove the bytes that were submitted
for (size_t j = 0; j < consumed; j++)
Expand Down