Advanced unusage of parameters
This commit is contained in:
parent
3d38f50d98
commit
2332f37eca
3 changed files with 13 additions and 12 deletions
|
|
@ -12,7 +12,7 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
CXXFLAGS= $(CFLAGS) -std=c++14 -Wno-unused-parameter
|
CXXFLAGS= $(CFLAGS) -std=c++14
|
||||||
|
|
||||||
LIBS=-framework SDL2 -lc++ -lc -framework OpenGL
|
LIBS=-framework SDL2 -lc++ -lc -framework OpenGL
|
||||||
LDFLAGS=-macosx_version_min 10.9 -rpath @executable_path/../Frameworks
|
LDFLAGS=-macosx_version_min 10.9 -rpath @executable_path/../Frameworks
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ void SimSerial::println(const char *str)
|
||||||
}
|
}
|
||||||
|
|
||||||
//Used to send serial midi
|
//Used to send serial midi
|
||||||
void SimSerial::write(const uint8_t str)
|
void SimSerial::write(const uint8_t __unused str)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,51 +9,52 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
void SimUsbMidi::sendNoteOff(uint8_t note, uint8_t velocity, uint8_t channel, uint8_t cable)
|
void SimUsbMidi::sendNoteOff(uint8_t note, uint8_t velocity, uint8_t channel, uint8_t __unused cable)
|
||||||
{
|
{
|
||||||
printf( "[usbMIDI::noteOff] note %03d vel %03d ch %02d\n", note, velocity, channel);
|
printf( "[usbMIDI::noteOff] note %03d vel %03d ch %02d\n", note, velocity, channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SimUsbMidi::sendNoteOn(uint8_t note, uint8_t velocity, uint8_t channel, uint8_t cable)
|
void SimUsbMidi::sendNoteOn(uint8_t note, uint8_t velocity, uint8_t channel, uint8_t __unused cable)
|
||||||
{
|
{
|
||||||
printf( "[usbMIDI::noteOn] note %03d vel %03d ch %02d\n", note, velocity, channel);
|
printf( "[usbMIDI::noteOn] note %03d vel %03d ch %02d\n", note, velocity, channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SimUsbMidi::sendPolyPressure(uint8_t note, uint8_t pressure, uint8_t channel, uint8_t cable)
|
void SimUsbMidi::sendPolyPressure(uint8_t note, uint8_t pressure, uint8_t channel, uint8_t __unused cable)
|
||||||
{
|
{
|
||||||
printf( "[usbMIDI::polyPressure] note %03d p %03d ch %02d\n", note, pressure, channel);
|
printf( "[usbMIDI::polyPressure] note %03d p %03d ch %02d\n", note, pressure, channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SimUsbMidi::sendAfterTouchPoly(uint8_t note, uint8_t pressure, uint8_t channel, uint8_t cable)
|
void SimUsbMidi::sendAfterTouchPoly(uint8_t note, uint8_t pressure, uint8_t channel, uint8_t __unused cable)
|
||||||
{
|
{
|
||||||
printf( "[usbMIDI::afterTouchPoly] note %03d p %03d ch %02d\n", note, pressure, channel);
|
printf( "[usbMIDI::afterTouchPoly] note %03d p %03d ch %02d\n", note, pressure, channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SimUsbMidi::sendControlChange(uint8_t control, uint8_t value, uint8_t channel, uint8_t cable)
|
void SimUsbMidi::sendControlChange(uint8_t control, uint8_t value, uint8_t channel, uint8_t __unused cable)
|
||||||
{
|
{
|
||||||
printf( "[usbMIDI::controlChange] cc %03d val %03d ch %02d\n", control, value, channel);
|
printf( "[usbMIDI::controlChange] cc %03d val %03d ch %02d\n", control, value, channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SimUsbMidi::sendProgramChange(uint8_t program, uint8_t channel, uint8_t cable)
|
void SimUsbMidi::sendProgramChange(uint8_t program, uint8_t channel, uint8_t __unused cable)
|
||||||
{
|
{
|
||||||
printf( "[usbMIDI::programChange] prg %03d ch %02d\n", program, channel);
|
printf( "[usbMIDI::programChange] prg %03d ch %02d\n", program, channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SimUsbMidi::sendAfterTouch(uint8_t pressure, uint8_t channel, uint8_t cable)
|
void SimUsbMidi::sendAfterTouch(uint8_t pressure, uint8_t channel, uint8_t __unused cable)
|
||||||
{
|
{
|
||||||
printf( "[usbMIDI::afterTouch] p %03d ch %02d\n", pressure, channel);
|
printf( "[usbMIDI::afterTouch] p %03d ch %02d\n", pressure, channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SimUsbMidi::sendPitchBend(int value, uint8_t channel, uint8_t cable)
|
void SimUsbMidi::sendPitchBend(int value, uint8_t channel, uint8_t __unused cable)
|
||||||
{
|
{
|
||||||
printf( "[usbMIDI::pitchBend] pb %05d ch %02d\n", value, channel);
|
printf( "[usbMIDI::pitchBend] pb %05d ch %02d\n", value, channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SimUsbMidi::sendSysEx(uint16_t length, const uint8_t *data, bool hasTerm, uint8_t cable)
|
void SimUsbMidi::sendSysEx(uint16_t length, const uint8_t __unused *data, bool __unused hasTerm, uint8_t __unused cable)
|
||||||
{
|
{
|
||||||
|
printf( "[usbMIDI::sysEx] len %d\n", length);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SimUsbMidi::read(uint8_t channel) {
|
bool SimUsbMidi::read(uint8_t __unused channel) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue