Skip to content

Commit d288c2a

Browse files
authored
Merge pull request #79 from SLM-Audio/syl/fix-wrong-port-index-type
Fix wrong portIndex type
2 parents 498925a + c9d49f7 commit d288c2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/mostly_harmless/core/mostlyharmless_IEngine.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ namespace mostly_harmless::core {
138138
* @param channel The midi channel the event was passed to
139139
* @param pressure The pressure applied to this midi note
140140
*/
141-
virtual void handleChannelAftertouch([[maybe_unused]] std::uint8_t portIndex, [[maybe_unused]] std::uint8_t channel, [[maybe_unused]] std::uint8_t pressure) {}
141+
virtual void handleChannelAftertouch([[maybe_unused]] std::uint16_t portIndex, [[maybe_unused]] std::uint8_t channel, [[maybe_unused]] std::uint8_t pressure) {}
142142

143143
/**
144144
* Called if the plugin receives a pitch wheel event - not pure virtual, as this function isn't relevant if you haven't requested midi functionality.
@@ -147,7 +147,7 @@ namespace mostly_harmless::core {
147147
* @param channel The midi channel the event was passed to
148148
* @param value The value, between -1.0 and 1.0
149149
*/
150-
virtual void handlePitchWheel([[maybe_unused]] std::uint8_t portIndex, [[maybe_unused]] std::uint8_t channel, [[maybe_unused]] double value) {}
150+
virtual void handlePitchWheel([[maybe_unused]] std::uint16_t portIndex, [[maybe_unused]] std::uint8_t channel, [[maybe_unused]] double value) {}
151151
};
152152
} // namespace mostly_harmless::core
153153
#endif // MOSTLYHARMLESS_MOSTLYHARMLESS_IENGINE_H

0 commit comments

Comments
 (0)