From: <sag...@us...> - 2015-04-09 19:37:35
|
Revision: 4919 http://sourceforge.net/p/modplug/code/4919 Author: saga-games Date: 2015-04-09 19:37:22 +0000 (Thu, 09 Apr 2015) Log Message: ----------- [Fix] Make finetune also work again when decrementing pitch, and define a saner default for the finetune step Modified Paths: -------------- trunk/OpenMPT/mptrack/TrackerSettings.cpp trunk/OpenMPT/mptrack/TrackerSettings.h Modified: trunk/OpenMPT/mptrack/TrackerSettings.cpp =================================================================== --- trunk/OpenMPT/mptrack/TrackerSettings.cpp 2015-04-09 18:55:21 UTC (rev 4918) +++ trunk/OpenMPT/mptrack/TrackerSettings.cpp 2015-04-09 19:37:22 UTC (rev 4919) @@ -218,7 +218,7 @@ , m_SampleUndoBufferSize(conf, "Sample Editor", "UndoBufferSize", SampleUndoBufferSize()) , sampleEditorKeyBehaviour(conf, "Sample Editor", "KeyBehaviour", seNoteOffOnNewKey) , m_defaultSampleFormat(conf, "Sample Editor", "DefaultFormat", dfFLAC) - , m_nFinetuneStep(conf, "Sample Editor", "FinetuneStep", 25) + , m_nFinetuneStep(conf, "Sample Editor", "FinetuneStep", 10) , m_FLACCompressionLevel(conf, "Sample Editor", "FLACCompressionLevel", 5) , compressITI(conf, "Sample Editor", "CompressITI", true) , m_MayNormalizeSamplesOnLoad(conf, "Sample Editor", "MayNormalizeSamplesOnLoad", true) @@ -445,6 +445,7 @@ m_LatencyMS = m_BufferLength_DEPRECATED * 3; m_UpdateIntervalMS = m_BufferLength_DEPRECATED / 8; } + if(!m_UpdateIntervalMS) m_UpdateIntervalMS = static_cast<uint32>(SoundDevice::Settings().UpdateInterval * 1000.0); } conf.Remove(m_BufferLength_DEPRECATED.GetPath()); } Modified: trunk/OpenMPT/mptrack/TrackerSettings.h =================================================================== --- trunk/OpenMPT/mptrack/TrackerSettings.h 2015-04-09 18:55:21 UTC (rev 4918) +++ trunk/OpenMPT/mptrack/TrackerSettings.h 2015-04-09 19:37:22 UTC (rev 4919) @@ -190,7 +190,7 @@ // Sample editor preview behaviour enum SampleEditorKeyBehaviour { - seNoteOffOnNewKey, + seNoteOffOnNewKey = 0, seNoteOffOnKeyUp, seNoteOffOnKeyRestrike, }; @@ -508,7 +508,7 @@ Setting<SampleUndoBufferSize> m_SampleUndoBufferSize; Setting<SampleEditorKeyBehaviour> sampleEditorKeyBehaviour; Setting<SampleEditorDefaultFormat> m_defaultSampleFormat; - Setting<uint32> m_nFinetuneStep; // Increment finetune by x when using spin control. Default = 25 + Setting<int32> m_nFinetuneStep; // Increment finetune by x when using spin control. Default = 25 cents Setting<int32> m_FLACCompressionLevel; // FLAC compression level for saving (0...8) Setting<bool> compressITI; Setting<bool> m_MayNormalizeSamplesOnLoad; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |