-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JACK: replace deprecated jack_port_get_latency() calls
jack_port_get_latency() is deprecated and jack_port_get_latency_range() should be used instead. Replace the deprecated API to resolve compiler warnings and ensure that the code will continue to compile when JACK removes the deprecated API. The JACK host API only needs the minimum latency value because PortAudio reports best-case latencies. Introduce a helper function that returns the minimum latency to avoid duplicated code that declares jack_latency_range_t local variables and only uses the struct's min field. Tested with both PipeWire 1.0.3 and JACK 1.9.22 on Linux. Signed-off-by: Stefan Hajnoczi <[email protected]> Fixes: #641
- Loading branch information
1 parent
3ee53a7
commit 7a47d8f
Showing
1 changed file
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters