Skip to content

Add libgig support, fix VST time sync, and improve build scripts#8433

Open
Densyakun wants to merge 6 commits into
LMMS:masterfrom
Densyakun:master
Open

Add libgig support, fix VST time sync, and improve build scripts#8433
Densyakun wants to merge 6 commits into
LMMS:masterfrom
Densyakun:master

Conversation

@Densyakun

Copy link
Copy Markdown

No description provided.

Densyakun and others added 6 commits April 3, 2026 16:55
- Fix WinMM linking: use 'winmm' for MinGW, keep hardcoded path for MSVC
- Skip windeployqt POST_BUILD when cross-compiling
- Pass VCPKG_APPLOCAL_DEPS flags to RemoteVstPlugin32 ExternalProject
- Add missing target_link_directories for GigPlayer
- Remove libgig from vcpkg (incompatible with MinGW, use PPA package)

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Three bugs fixed:

1. Stop position not reflected to VST: When playback stops and returns
   to the start position, the VST plugin now sees the updated position.
   Previously, samplePos was only updated during playback.

2. Position changes while stopped: When the user moves the playback
   cursor without playing, the VST sync position is now updated via
   a connection to Timeline::positionJumped.

3. Piano roll (MidiClip) playback: playMidiClip() now calls
   setPlaybackState(true) like playSong() and playPattern() do.

Additionally, samplePos in audioMasterGetTime is now derived from the
computed ppqPos for consistency, rather than from the stale
m_currentSamplePos that was only updated during process().

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
When audioMasterGetTime is called while stopped and the position
hasn't changed, neither the position-update branch nor the
interpolation branch fires, leaving ppqPos at 0 (from memset).

Add an else branch that preserves lastppqPos so the VST always
sees the correct position regardless of playback state.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant