Skip to content

Commit

Permalink
float to fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
defiantnerd committed Jun 10, 2024
1 parent 61fea1d commit 2b413db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/detail/vst3/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ void ProcessAdapter::process(Steinberg::Vst::ProcessData& data)
_transport.song_pos_beats = 0;

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

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

0 comments on commit 2b413db

Please sign in to comment.