From 2a6bdc1a9b4d48dea9583e84ce2a91b8397bf099 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 25 Jan 2021 22:26:50 +0800 Subject: Fix yet another function with no return statement. --- core/qmpmidiplay.cpp | 2 +- core/qmpmidiplay.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/qmpmidiplay.cpp b/core/qmpmidiplay.cpp index e8e83a2..2693307 100644 --- a/core/qmpmidiplay.cpp +++ b/core/qmpmidiplay.cpp @@ -556,7 +556,7 @@ double CMidiPlayer::getPitchBend(int ch) { return ((int)pbv[ch] - 8192) / 8192.*pbr[ch]; } -double CMidiPlayer::getPitchBendRaw(int ch, uint32_t *pb, uint32_t *pbr) +void CMidiPlayer::getPitchBendRaw(int ch, uint32_t *pb, uint32_t *pbr) { if (pb) *pb = this->pbv[ch]; diff --git a/core/qmpmidiplay.hpp b/core/qmpmidiplay.hpp index ddbb63b..56a26fd 100644 --- a/core/qmpmidiplay.hpp +++ b/core/qmpmidiplay.hpp @@ -141,7 +141,7 @@ public: uint32_t getDivision(); uint32_t getMaxTick(); double getPitchBend(int ch); - double getPitchBendRaw(int ch, uint32_t *pb, uint32_t *pbr); + void getPitchBendRaw(int ch, uint32_t *pb, uint32_t *pbr); const char *getTitle(); const char *getCopyright(); -- cgit v1.2.3