JACK-AUDIO-CONNECTION-KIT
Data Structures | Macros | Typedefs | Enumerations | Functions
transport.h File Reference
#include <jack/types.h>
#include <jack/weakmacros.h>

Go to the source code of this file.

Data Structures

struct  jack_position_t
 
struct  jack_transport_info_t
 

Macros

#define JACK_POSITION_MASK   (JackPositionBBT|JackPositionTimecode|JackBBTFrameOffset|JackAudioVideoRatio|JackVideoFrameOffset)
 
#define EXTENDED_TIME_INFO
 
#define JACK_TICK_DOUBLE
 

Typedefs

typedef uint64_t jack_unique_t
 
typedef int(* JackSyncCallback) (jack_transport_state_t state, jack_position_t *pos, void *arg)
 
typedef void(* JackTimebaseCallback) (jack_transport_state_t state, jack_nframes_t nframes, jack_position_t *pos, int new_pos, void *arg)
 

Enumerations

enum  jack_transport_state_t { JackTransportStopped = 0 , JackTransportRolling = 1 , JackTransportLooping = 2 , JackTransportStarting = 3 }
 
enum  jack_position_bits_t {
  JackPositionBBT = 0x10 , JackPositionTimecode = 0x20 , JackBBTFrameOffset = 0x40 , JackAudioVideoRatio = 0x80 ,
  JackVideoFrameOffset = 0x100 , JackTickDouble = 0x200
}
 
enum  jack_transport_bits_t {
  JackTransportState = 0x1 , JackTransportPosition = 0x2 , JackTransportLoop = 0x4 , JackTransportSMPTE = 0x8 ,
  JackTransportBBT = 0x10
}
 

Functions

int jack_release_timebase (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT
 
int jack_set_sync_callback (jack_client_t *client, JackSyncCallback sync_callback, void *arg) JACK_OPTIONAL_WEAK_EXPORT
 
int jack_set_sync_timeout (jack_client_t *client, jack_time_t timeout) JACK_OPTIONAL_WEAK_EXPORT
 
int jack_set_timebase_callback (jack_client_t *client, int conditional, JackTimebaseCallback timebase_callback, void *arg) JACK_OPTIONAL_WEAK_EXPORT
 
int jack_transport_locate (jack_client_t *client, jack_nframes_t frame) JACK_OPTIONAL_WEAK_EXPORT
 
jack_transport_state_t jack_transport_query (const jack_client_t *client, jack_position_t *pos) JACK_OPTIONAL_WEAK_EXPORT
 
jack_nframes_t jack_get_current_transport_frame (const jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT
 
int jack_transport_reposition (jack_client_t *client, const jack_position_t *pos) JACK_OPTIONAL_WEAK_EXPORT
 
void jack_transport_start (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT
 
void jack_transport_stop (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT
 
void jack_get_transport_info (jack_client_t *client, jack_transport_info_t *tinfo) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT
 
void jack_set_transport_info (jack_client_t *client, jack_transport_info_t *tinfo) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT
 

Macro Definition Documentation

◆ EXTENDED_TIME_INFO

#define EXTENDED_TIME_INFO

◆ JACK_POSITION_MASK

all valid position bits

◆ JACK_TICK_DOUBLE

#define JACK_TICK_DOUBLE

transport tick_double member is available for use

Typedef Documentation

◆ jack_unique_t

typedef uint64_t jack_unique_t

Unique ID (opaque)

Enumeration Type Documentation

◆ jack_position_bits_t

Optional struct jack_position_t fields.

Enumerator
JackPositionBBT 

Bar, Beat, Tick

JackPositionTimecode 

External timecode

JackBBTFrameOffset 

Frame offset of BBT information

JackAudioVideoRatio 

audio frames per video frame

JackVideoFrameOffset 

frame offset of first video frame

JackTickDouble 

double-resolution tick

◆ jack_transport_state_t

Transport states.

Enumerator
JackTransportStopped 

Transport halted

JackTransportRolling 

Transport playing

JackTransportLooping 

For OLD_TRANSPORT, now ignored

JackTransportStarting 

Waiting for sync ready