Skip to content

Commit

Permalink
setting song_pos_seconds always
Browse files Browse the repository at this point in the history
  • Loading branch information
defiantnerd committed Jun 10, 2024
1 parent c6fe937 commit 61fea1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/detail/vst3/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ void ProcessAdapter::process(Steinberg::Vst::ProcessData& data)
;

_transport.song_pos_beats = 0;
_transport.song_pos_seconds = 0;

// samplerate and projectTimeSamples are always valid
_transport.song_pos_seconds =
_vstdata->processContext->projectTimeSamples / _vstdata->processContext->sampleRate;

if ((_vstdata->processContext->state & Vst::ProcessContext::kProjectTimeMusicValid))
{
Expand Down

0 comments on commit 61fea1d

Please sign in to comment.