Skip to content

Commit a2974e0

Browse files
committed
Add module constants for transport state
1 parent c79ba44 commit a2974e0

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

‎doc/fake_cffi.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ def dlopen(self, _):
99
return self
1010

1111
NULL = NotImplemented
12+
13+
JackTransportStopped = 0
14+
JackTransportRolling = 1
15+
JackTransportStarting = 3
16+
JackTransportNetStarting = 4

‎jack.py‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,15 @@
274274
_AUDIO = b"32 bit float mono audio"
275275
_MIDI = b"8 bit raw midi"
276276

277+
STOPPED = _lib.JackTransportStopped
278+
"""Transport halted."""
279+
ROLLING = _lib.JackTransportRolling
280+
"""Transport playing."""
281+
STARTING = _lib.JackTransportStarting
282+
"""Waiting for sync ready."""
283+
NETSTARTING = _lib.JackTransportNetStarting
284+
"""Waiting for sync ready on the network."""
285+
277286
CALL_AGAIN = 0
278287
"""Possible return value for process callback."""
279288
STOP_CALLING = 1
@@ -654,11 +663,9 @@ def transport_query(self):
654663
655664
Transport state
656665
---------------
657-
Transport state can take following value :
658-
* 0 : Stopped
659-
* 1 : Rolling (playing)
660-
* 3 : Starting (preparing playback)
661-
* 4 : Net Starting
666+
Transport state can take following values:
667+
:attr:`STOPPED`, :attr:`ROLLING`, :attr:`STARTING` and
668+
:attr:`NETSTARTING`.
662669
663670
Position informations
664671
---------------------

0 commit comments

Comments
 (0)