Skip to content

pa_jack.c uses deprecated jack_port_get_latency API #641

@Be-ing

Description

@Be-ing
be@gsuss-iMac portaudio % cmake -D CMAKE_BUILD_TYPE=Debug -S . -B cmake_build

-- The C compiler identification is AppleClang 12.0.5.12050022
-- The CXX compiler identification is AppleClang 12.0.5.12050022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found Regex: POSIX regex.h  
-- Found JACK: /usr/local/lib/libjack.dylib;Regex::regex  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/be/sw/portaudio/cmake_build
be@gsuss-iMac portaudio % cmake --build cmake_build

...

/Users/be/sw/portaudio/src/hostapi/jack/pa_jack.c:637:17: warning: 'jack_port_get_latency' is deprecated [-Wdeprecated-declarations]
                jack_port_get_latency( p ) / globalSampleRate;
                ^
/usr/local/include/jack/jack.h:1233:58: note: 'jack_port_get_latency' has been explicitly marked deprecated here
jack_nframes_t jack_port_get_latency (jack_port_t *port) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT;
                                                         ^
/usr/local/include/jack/weakmacros.h:80:61: note: expanded from macro 'JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT'
#define JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT __attribute__((__deprecated__))
                                                            ^
/Users/be/sw/portaudio/src/hostapi/jack/pa_jack.c:658:17: warning: 'jack_port_get_latency' is deprecated [-Wdeprecated-declarations]
                jack_port_get_latency( p ) / globalSampleRate;
                ^
/usr/local/include/jack/jack.h:1233:58: note: 'jack_port_get_latency' has been explicitly marked deprecated here
jack_nframes_t jack_port_get_latency (jack_port_t *port) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT;
                                                         ^
/usr/local/include/jack/weakmacros.h:80:61: note: expanded from macro 'JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT'
#define JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT __attribute__((__deprecated__))
                                                            ^
/Users/be/sw/portaudio/src/hostapi/jack/pa_jack.c:1354:65: warning: 'jack_port_get_latency' is deprecated [-Wdeprecated-declarations]
        stream->streamRepresentation.streamInfo.inputLatency = (jack_port_get_latency( stream->remote_output_ports[0] )
                                                                ^
/usr/local/include/jack/jack.h:1233:58: note: 'jack_port_get_latency' has been explicitly marked deprecated here
jack_nframes_t jack_port_get_latency (jack_port_t *port) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT;
                                                         ^
/usr/local/include/jack/weakmacros.h:80:61: note: expanded from macro 'JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT'
#define JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT __attribute__((__deprecated__))
                                                            ^
/Users/be/sw/portaudio/src/hostapi/jack/pa_jack.c:1358:66: warning: 'jack_port_get_latency' is deprecated [-Wdeprecated-declarations]
        stream->streamRepresentation.streamInfo.outputLatency = (jack_port_get_latency( stream->remote_input_ports[0] )
                                                                 ^
/usr/local/include/jack/jack.h:1233:58: note: 'jack_port_get_latency' has been explicitly marked deprecated here
jack_nframes_t jack_port_get_latency (jack_port_t *port) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT;
                                                         ^
/usr/local/include/jack/weakmacros.h:80:61: note: expanded from macro 'JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT'
#define JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT __attribute__((__deprecated__))
                                                            ^
/Users/be/sw/portaudio/src/hostapi/jack/pa_jack.c:1420:62: warning: 'jack_port_get_latency' is deprecated [-Wdeprecated-declarations]
        timeInfo.inputBufferAdcTime = timeInfo.currentTime - jack_port_get_latency( stream->remote_output_ports[0] )
                                                             ^
/usr/local/include/jack/jack.h:1233:58: note: 'jack_port_get_latency' has been explicitly marked deprecated here
jack_nframes_t jack_port_get_latency (jack_port_t *port) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT;
                                                         ^
/usr/local/include/jack/weakmacros.h:80:61: note: expanded from macro 'JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT'
#define JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT __attribute__((__deprecated__))
                                                            ^
/Users/be/sw/portaudio/src/hostapi/jack/pa_jack.c:1423:63: warning: 'jack_port_get_latency' is deprecated [-Wdeprecated-declarations]
        timeInfo.outputBufferDacTime = timeInfo.currentTime + jack_port_get_latency( stream->remote_input_ports[0] )
                                                              ^
/usr/local/include/jack/jack.h:1233:58: note: 'jack_port_get_latency' has been explicitly marked deprecated here
jack_nframes_t jack_port_get_latency (jack_port_t *port) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT;
                                                         ^
/usr/local/include/jack/weakmacros.h:80:61: note: expanded from macro 'JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT'
#define JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT __attribute__((__deprecated__))
                                                            ^

Desktop (please complete the following information):

  • OS: macOS, though this affects every OS
  • OS Version: 11.2.3
  • PortAudio version: master branch (55b97bf)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Priority: Highsrc-jackJACK Audio Connection Kit Host API /src/hostapi/jack

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions