Skip to content

Commit 6e67d9b

Browse files
committed
Add module constants for JACK position bits
1 parent 7402d1d commit 6e67d9b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

doc/fake__jack.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ class Fake(object):
2828
PropertyChanged = 1
2929
PropertyDeleted = 2
3030

31+
JackPositionBBT = 0x10
32+
JackPositionTimecode = 0x20
33+
JackBBTFrameOffset = 0x40
34+
JackAudioVideoRatio = 0x80
35+
JackVideoFrameOffset = 0x100
36+
3137
def dlopen(self, _):
3238
return self
3339

src/jack.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@
6363
PROPERTY_DELETED = _lib.PropertyDeleted
6464
"""A property was deleted. See `Client.set_property_change_callback()`."""
6565

66+
POSITION_BBT = _lib.JackPositionBBT
67+
"""Bar, Beat, Tick."""
68+
POSITION_TIMECODE = _lib.JackPositionTimecode
69+
"""External timecode."""
70+
POSITION_BBT_FRAME_OFFSET = _lib.JackBBTFrameOffset
71+
"""Frame offset of BBT information."""
72+
POSITION_AUDIO_VIDEO_RATIO = _lib.JackAudioVideoRatio
73+
"""Audio frames per video frame."""
74+
POSITION_VIDEO_FRAME_OFFSET = _lib.JackVideoFrameOffset
75+
"""Frame offset of first video frame."""
76+
6677
_SUCCESS = 0
6778
_FAILURE = 1
6879

0 commit comments

Comments
 (0)