From: <sv...@op...> - 2024-12-11 21:35:08
|
Author: sagamusix Date: Wed Dec 11 22:34:55 2024 New Revision: 22521 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22521 Log: [Imp] VST: Reset position again after rendering one sample, to avoid some of the time reporting to be off by one sample. Modified: trunk/OpenMPT/mptrack/Vstplug.cpp Modified: trunk/OpenMPT/mptrack/Vstplug.cpp ============================================================================== --- trunk/OpenMPT/mptrack/Vstplug.cpp Wed Dec 11 22:31:16 2024 (r22520) +++ trunk/OpenMPT/mptrack/Vstplug.cpp Wed Dec 11 22:34:55 2024 (r22521) @@ -1444,6 +1444,8 @@ float out = 0.0f; Process(&out, &out, 1); Suspend(); + // As we have now rendered one sample, reset the position change flag again. Otherwise the last bar start position may be off by a sample. + m_positionChanged = true; } } |