annotate src/portaudio_20161030_catalina_patch/include/pa_jack.h @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents 4edcd14160a5
children
rev   line source
Chris@4 1 #ifndef PA_JACK_H
Chris@4 2 #define PA_JACK_H
Chris@4 3
Chris@4 4 /*
Chris@4 5 * $Id:
Chris@4 6 * PortAudio Portable Real-Time Audio Library
Chris@4 7 * JACK-specific extensions
Chris@4 8 *
Chris@4 9 * Copyright (c) 1999-2000 Ross Bencina and Phil Burk
Chris@4 10 *
Chris@4 11 * Permission is hereby granted, free of charge, to any person obtaining
Chris@4 12 * a copy of this software and associated documentation files
Chris@4 13 * (the "Software"), to deal in the Software without restriction,
Chris@4 14 * including without limitation the rights to use, copy, modify, merge,
Chris@4 15 * publish, distribute, sublicense, and/or sell copies of the Software,
Chris@4 16 * and to permit persons to whom the Software is furnished to do so,
Chris@4 17 * subject to the following conditions:
Chris@4 18 *
Chris@4 19 * The above copyright notice and this permission notice shall be
Chris@4 20 * included in all copies or substantial portions of the Software.
Chris@4 21 *
Chris@4 22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Chris@4 23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Chris@4 24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
Chris@4 25 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
Chris@4 26 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
Chris@4 27 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
Chris@4 28 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Chris@4 29 */
Chris@4 30
Chris@4 31 /*
Chris@4 32 * The text above constitutes the entire PortAudio license; however,
Chris@4 33 * the PortAudio community also makes the following non-binding requests:
Chris@4 34 *
Chris@4 35 * Any person wishing to distribute modifications to the Software is
Chris@4 36 * requested to send the modifications to the original developer so that
Chris@4 37 * they can be incorporated into the canonical version. It is also
Chris@4 38 * requested that these non-binding requests be included along with the
Chris@4 39 * license above.
Chris@4 40 */
Chris@4 41
Chris@4 42 /** @file
Chris@4 43 * @ingroup public_header
Chris@4 44 * @brief JACK-specific PortAudio API extension header file.
Chris@4 45 */
Chris@4 46
Chris@4 47 #include "portaudio.h"
Chris@4 48
Chris@4 49 #ifdef __cplusplus
Chris@4 50 extern "C" {
Chris@4 51 #endif
Chris@4 52
Chris@4 53 /** Set the JACK client name.
Chris@4 54 *
Chris@4 55 * During Pa_Initialize, When PA JACK connects as a client of the JACK server, it requests a certain
Chris@4 56 * name, which is for instance prepended to port names. By default this name is "PortAudio". The
Chris@4 57 * JACK server may append a suffix to the client name, in order to avoid clashes among clients that
Chris@4 58 * try to connect with the same name (e.g., different PA JACK clients).
Chris@4 59 *
Chris@4 60 * This function must be called before Pa_Initialize, otherwise it won't have any effect. Note that
Chris@4 61 * the string is not copied, but instead referenced directly, so it must not be freed for as long as
Chris@4 62 * PA might need it.
Chris@4 63 * @sa PaJack_GetClientName
Chris@4 64 */
Chris@4 65 PaError PaJack_SetClientName( const char* name );
Chris@4 66
Chris@4 67 /** Get the JACK client name used by PA JACK.
Chris@4 68 *
Chris@4 69 * The caller is responsible for freeing the returned pointer.
Chris@4 70 */
Chris@4 71 PaError PaJack_GetClientName(const char** clientName);
Chris@4 72
Chris@4 73 #ifdef __cplusplus
Chris@4 74 }
Chris@4 75 #endif
Chris@4 76
Chris@4 77 #endif