diff options
author | Wohlstand <admin@wohlnet.ru> | 2020-09-28 23:41:50 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2020-09-28 23:41:50 +0300 |
commit | e52e26a18e3f658a20f620fc55be82f0feef5d01 (patch) | |
tree | 4dad56007910f2b9dac83c9a034dea36cad4ff44 /src | |
parent | e94f88561c562148d8d2b95d36d674e58af9aa0d (diff) | |
download | libADLMIDI-e52e26a18e3f658a20f620fc55be82f0feef5d01.tar.gz libADLMIDI-e52e26a18e3f658a20f620fc55be82f0feef5d01.tar.bz2 libADLMIDI-e52e26a18e3f658a20f620fc55be82f0feef5d01.zip |
Fixed some minor MSVC warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/adlmidi_midiplay.cpp | 2 | ||||
-rw-r--r-- | src/adlmidi_opl3.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp index 657f825..f77ce81 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -1714,7 +1714,7 @@ size_t MIDIplay::chooseDevice(const std::string &name) size_t n = m_midiDevices.size() * 16; m_midiDevices.insert(std::make_pair(name, n)); m_midiChannels.resize(n + 16); - resetMIDIDefaults(n); + resetMIDIDefaults(static_cast<int>(n)); return n; } diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp index 9fbb8bb..a3ec71b 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -394,7 +394,7 @@ static inline double s_dmxFreq(double tone) { uint_fast32_t noteI = (uint_fast32_t)(tone); int_fast32_t bendI = 0; - int_fast32_t outHz = 0.0; + int_fast32_t outHz = 0; double bendDec = tone - (int)tone; bendI = (int_fast32_t)((bendDec * 128.0) / 2.0) + 128; @@ -470,7 +470,7 @@ static inline double s_apogeeFreq(double tone) { uint_fast32_t noteI = (uint_fast32_t)(tone); int_fast32_t bendI = 0; - int_fast32_t outHz = 0.0; + int_fast32_t outHz = 0; double bendDec = tone - (int)tone; int_fast32_t octave; int_fast32_t scaleNote; |