annotate src/portaudio_20140130/include/pa_jack.h @ 81:7029a4916348

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