Skip to content

Commit

Permalink
feat: add support for new 'tick_double' field in 'jack_position_t' (f…
Browse files Browse the repository at this point in the history
…ixes #8)

Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
  • Loading branch information
SpotlightKid committed Mar 27, 2022
1 parent 70c2f7d commit 5623966
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jacklib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,15 @@ def _d(s, encoding=ENCODING):
JackBBTFrameOffset = 0x40
JackAudioVideoRatio = 0x80
JackVideoFrameOffset = 0x100
# JACK2 1.9.19+:
JackTickDouble = 0x200
JACK_POSITION_MASK = (
JackPositionBBT
| JackPositionTimecode
| JackBBTFrameOffset
| JackAudioVideoRatio
| JackVideoFrameOffset
| JackTickDouble
)

# enum JackSessionEventType
Expand Down Expand Up @@ -268,7 +271,8 @@ class jack_position_t(Structure):
("bbt_offset", jack_nframes_t),
("audio_frames_per_video_frame", c_float),
("video_offset", jack_nframes_t),
("padding", ARRAY(c_int32, 7)),
("tick_double", c_double),
("padding", ARRAY(c_int32, 5)),
("unique_2", jack_unique_t),
]

Expand Down

0 comments on commit 5623966

Please sign in to comment.