diff --git a/src/opnmidi_midiplay.cpp b/src/opnmidi_midiplay.cpp index f3e4f49..f2a76ab 100644 --- a/src/opnmidi_midiplay.cpp +++ b/src/opnmidi_midiplay.cpp @@ -1606,7 +1606,7 @@ size_t OPNMIDIplay::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(n)); return n; } diff --git a/src/opnmidi_opn2.cpp b/src/opnmidi_opn2.cpp index 26ef352..a58945c 100644 --- a/src/opnmidi_opn2.cpp +++ b/src/opnmidi_opn2.cpp @@ -400,7 +400,7 @@ void OPN2::touchNote(size_t c, if(volume > minVolume) { double lv = std::log(static_cast(volume)); - volume = static_cast(lv * c1 - c2) * 2.0; + volume = static_cast(lv * c1 - c2) * 2; } else volume = 0;