lathoub / Arduino-AppleMIDI-Library

Send and receive MIDI messages over Ethernet (rtpMIDI or AppleMIDI)
Other
306 stars 66 forks source link

APPLEMIDI_CREATE_INSTANCE" requires 4 arguments, but only 2 given #93

Closed simonegiusti closed 3 years ago

simonegiusti commented 3 years ago
"APPLEMIDI_CREATE_INSTANCE" requires 4 arguments, but only 2 given
 APPLEMIDI_CREATE_INSTANCE(WiFiUDP, AppleMIDI); // see definition in AppleMidi_Defs.h

trying to compile on Esp8266 NodeMCU v2

I tried to add missing arguments looking for definition.

APPLEMIDI_CREATE_INSTANCE(WiFiUDP, AppleMIDI, "ardu", 5004); // see definition in AppleMidi_Defs.h

... a new error comes on AppleMIDI.stop();

'class midi::MidiInterface<appleMidi::AppleMIDISession<WiFiUDP>, appleMidi::AppleMIDISettings>' has no member named 'stop'

finally I tried to rem AppleMIDI.stop and an error on AppleMIDI.begin("midi1button"); and ...

           ^

C:\Users\simon\Documents\Arduino\sketch_dec04c\sketch_dec04c.ino: At global scope: C:\Users\simon\Documents\Arduino\sketch_dec04c\sketch_dec04c.ino:197:6: warning: unused parameter 'ssrc' [-Wunused-parameter] void OnAppleMidiConnected(uint32_t ssrc, char* name) { ^ C:\Users\simon\Documents\Arduino\sketch_dec04c\sketch_dec04c.ino:206:6: warning: unused parameter 'ssrc' [-Wunused-parameter] void OnAppleMidiDisconnected(uint32_t ssrc) { ^

C:\Users\simon\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi 
invalid conversion from 'const char*' to 'midi::Channel {aka unsigned char}' [-fpermissive]
lathoub commented 3 years ago

Fixed in the latest Release (v2.2.0) - pls check

lathoub commented 3 years ago

Fix taken up in #98