summaryrefslogtreecommitdiff
path: root/soundlib/plugins/PlugInterface.cpp
diff options
context:
space:
mode:
authorJames Cowgill <jcowgill@debian.org>2018-05-07 17:07:06 +0100
committerJames Cowgill <jcowgill@debian.org>2018-05-07 17:07:06 +0100
commit5b4812131c7a530e6a99e4ac2a539b296f29667a (patch)
treee751cc79c7733e9cfdd5de4d6bd4c67344e5d107 /soundlib/plugins/PlugInterface.cpp
parentc995e8a34a0e305a46d6960fe6d2caea109352f6 (diff)
New upstream version 0.3.9
Diffstat (limited to 'soundlib/plugins/PlugInterface.cpp')
-rw-r--r--soundlib/plugins/PlugInterface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/soundlib/plugins/PlugInterface.cpp b/soundlib/plugins/PlugInterface.cpp
index 23cdef1..eb39371 100644
--- a/soundlib/plugins/PlugInterface.cpp
+++ b/soundlib/plugins/PlugInterface.cpp
@@ -651,7 +651,7 @@ bool IMixPlugin::SaveProgram()
defaultDir = m_Factory.dllPath.GetPath();
}
- CString progName = GetCurrentProgramName();
+ CString progName = m_Factory.libraryName.ToCString() + _T(" - ") + GetCurrentProgramName();
SanitizeFilename(progName);
FileDialog dlg = SaveFileDialog()
@@ -928,7 +928,7 @@ void IMidiPlugin::MidiCommand(uint8 nMidiCh, uint8 nMidiProg, uint16 wMidiBank,
// Problem: if a note dies out naturally and we never send a note off, this counter
// will block at max until note off. Is this a problem?
// Safe to assume we won't need more than 16 note offs max on a given note?
- if(channel.noteOnMap[note][trackChannel] < 17)
+ if(channel.noteOnMap[note][trackChannel] < uint8_max)
channel.noteOnMap[note][trackChannel]++;
MidiSend(MIDIEvents::NoteOn(nMidiCh, static_cast<uint8>(note), volume));