Chris@39: #ifndef PA_JACK_H Chris@39: #define PA_JACK_H Chris@39: Chris@39: /* Chris@39: * $Id: Chris@39: * PortAudio Portable Real-Time Audio Library Chris@39: * JACK-specific extensions Chris@39: * Chris@39: * Copyright (c) 1999-2000 Ross Bencina and Phil Burk Chris@39: * Chris@39: * Permission is hereby granted, free of charge, to any person obtaining Chris@39: * a copy of this software and associated documentation files Chris@39: * (the "Software"), to deal in the Software without restriction, Chris@39: * including without limitation the rights to use, copy, modify, merge, Chris@39: * publish, distribute, sublicense, and/or sell copies of the Software, Chris@39: * and to permit persons to whom the Software is furnished to do so, Chris@39: * subject to the following conditions: Chris@39: * Chris@39: * The above copyright notice and this permission notice shall be Chris@39: * included in all copies or substantial portions of the Software. Chris@39: * Chris@39: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, Chris@39: * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF Chris@39: * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. Chris@39: * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR Chris@39: * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF Chris@39: * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION Chris@39: * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Chris@39: */ Chris@39: Chris@39: /* Chris@39: * The text above constitutes the entire PortAudio license; however, Chris@39: * the PortAudio community also makes the following non-binding requests: Chris@39: * Chris@39: * Any person wishing to distribute modifications to the Software is Chris@39: * requested to send the modifications to the original developer so that Chris@39: * they can be incorporated into the canonical version. It is also Chris@39: * requested that these non-binding requests be included along with the Chris@39: * license above. Chris@39: */ Chris@39: Chris@39: /** @file Chris@39: * @ingroup public_header Chris@39: * @brief JACK-specific PortAudio API extension header file. Chris@39: */ Chris@39: Chris@39: #include "portaudio.h" Chris@39: Chris@39: #ifdef __cplusplus Chris@39: extern "C" { Chris@39: #endif Chris@39: Chris@39: /** Set the JACK client name. Chris@39: * Chris@39: * During Pa_Initialize, When PA JACK connects as a client of the JACK server, it requests a certain Chris@39: * name, which is for instance prepended to port names. By default this name is "PortAudio". The Chris@39: * JACK server may append a suffix to the client name, in order to avoid clashes among clients that Chris@39: * try to connect with the same name (e.g., different PA JACK clients). Chris@39: * Chris@39: * This function must be called before Pa_Initialize, otherwise it won't have any effect. Note that Chris@39: * the string is not copied, but instead referenced directly, so it must not be freed for as long as Chris@39: * PA might need it. Chris@39: * @sa PaJack_GetClientName Chris@39: */ Chris@39: PaError PaJack_SetClientName( const char* name ); Chris@39: Chris@39: /** Get the JACK client name used by PA JACK. Chris@39: * Chris@39: * The caller is responsible for freeing the returned pointer. Chris@39: */ Chris@39: PaError PaJack_GetClientName(const char** clientName); Chris@39: Chris@39: #ifdef __cplusplus Chris@39: } Chris@39: #endif Chris@39: Chris@39: #endif