Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions jack.py
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,18 @@ def set_port_registration_callback(self, callback=None,
.. note:: This function cannot be called while the client is
activated (after `activate()` has been called).

.. note:: Due to JACK 1 behavior, it is not possible to get
the pointer to an unregistering JACK Port if it already
existed before `activate()` was called. This will cause
the callback not to be called if *only_available* is
``True``, or called with ``None`` as first argument (see
below).

To avoid this, call `Client.get_ports()` just after
`activate()`, allowing the module to store pointers to
already existing ports and always receive a `Port`
argument for this callback.

Parameters
----------
callback : callable
Expand Down Expand Up @@ -1184,6 +1196,18 @@ def set_port_connect_callback(self, callback=None, only_available=True):
.. note:: This function cannot be called while the client is
activated (after `activate()` has been called).

.. note:: Due to JACK 1 behavior, it is not possible to get
the pointer to an unregistering JACK Port if it already
existed before `activate()` was called. This will cause
the callback not to be called if *only_available* is
``True``, or called with ``None`` as first argument (see
below).

To avoid this, call `Client.get_ports()` just after
`activate()`, allowing the module to store pointers to
already existing ports and always receive a `Port`
argument for this callback.

Parameters
----------
callback : callable
Expand Down