瀏覽代碼

Fix usbMIDI.setHandlePitchChange() data type on Teensy 2.0

teensy4-core
PaulStoffregen 11 年之前
父節點
當前提交
96ff027109
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      usb_midi/usb_api.h

+ 2
- 2
usb_midi/usb_api.h 查看文件

@@ -73,7 +73,7 @@ public:
inline void setHandleAfterTouch(void (*fptr)(uint8_t channel, uint8_t pressure)) {
handleAfterTouch = fptr;
};
inline void setHandlePitchChange(void (*fptr)(uint8_t channel, uint16_t pitch)) {
inline void setHandlePitchChange(void (*fptr)(uint8_t channel, int pitch)) {
handlePitchChange = fptr;
};
inline void setHandleRealTimeSystem(void (*fptr)(uint8_t realtimebyte)) {
@@ -94,7 +94,7 @@ private:
void (*handleControlChange)(uint8_t ch, uint8_t, uint8_t);
void (*handleProgramChange)(uint8_t ch, uint8_t);
void (*handleAfterTouch)(uint8_t ch, uint8_t);
void (*handlePitchChange)(uint8_t ch, uint16_t);
void (*handlePitchChange)(uint8_t ch, int pitch);
void (*handleRealTimeSystem)(uint8_t rtb);
};


Loading…
取消
儲存