aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2021-01-25 22:26:50 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2021-01-25 22:26:50 +0800
commit2a6bdc1a9b4d48dea9583e84ce2a91b8397bf099 (patch)
treecd4b842023df2f477b2c4d3c5a665fe407857635 /core
parentf4f0d6195457c3c8c55a41a4dd4869d6653957c3 (diff)
downloadQMidiPlayer-2a6bdc1a9b4d48dea9583e84ce2a91b8397bf099.tar.xz
Fix yet another function with no return statement.
Diffstat (limited to 'core')
-rw-r--r--core/qmpmidiplay.cpp2
-rw-r--r--core/qmpmidiplay.hpp2
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();