Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Transport fix
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Apr 6, 2013
1 parent a537d21 commit f3fce1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dssi-vst-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -825,21 +825,21 @@ hostCallback(AEffect *plugin, long opcode, long index,

if (jack_client)
{
static jack_position_t jack_pos;
static jack_transport_state_t jack_state;
jack_position_t jack_pos;
jack_transport_state_t jack_state;

jack_state = jack_transport_query(jack_client, &jack_pos);

if (jack_pos.unique_1 == jack_pos.unique_2)
{
timeInfo.sampleRate = jack_pos.frame_rate;
timeInfo.samplePos = jack_pos.frame;
timeInfo.nanoSeconds = jack_pos.usecs*1000;
timeInfo.nanoSeconds = jack_pos.usecs/1000;

timeInfo.flags |= kVstTransportChanged;
timeInfo.flags |= kVstNanosValid;

if (jack_state != JackTransportStopped)
if (jack_state == JackTransportRolling)
timeInfo.flags |= kVstTransportPlaying;

if (jack_pos.valid & JackPositionBBT)
Expand Down

0 comments on commit f3fce1b

Please sign in to comment.