[PD-cvs] pd/portaudio/src/hostapi/jack pa_jack.c,NONE,1.1

Miller Puckette millerpuckette at users.sourceforge.net
Sun Aug 19 01:49:35 CEST 2007


Update of /cvsroot/pure-data/pd/portaudio/src/hostapi/jack
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19525/portaudio/src/hostapi/jack

Added Files:
	pa_jack.c 
Log Message:
CVS upload mistakes



--- NEW FILE: pa_jack.c ---
/*
 * $Id: pa_jack.c,v 1.1 2007/08/18 23:49:33 millerpuckette Exp $
 * PortAudio Portable Real-Time Audio Library
 * Latest Version at: http://www.portaudio.com
 * JACK Implementation by Joshua Haberman
 *
 * Copyright (c) 2004 Stefan Westerfeld <stefan at space.twc.de>
 * Copyright (c) 2004 Arve Knudsen <aknuds-1 at broadpark.no>
 * Copyright (c) 2002 Joshua Haberman <joshua at haberman.com>
 *
 * Based on the Open Source API proposed by Ross Bencina
 * Copyright (c) 1999-2002 Ross Bencina, Phil Burk
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files
 * (the "Software"), to deal in the Software without restriction,
 * including without limitation the rights to use, copy, modify, merge,
 * publish, distribute, sublicense, and/or sell copies of the Software,
 * and to permit persons to whom the Software is furnished to do so,
[...1717 lines suppressed...]
{
    if( strlen( name ) > jack_client_name_size() )
    {
        /* OK, I don't know any better error code */
        return paInvalidFlag;
    }
    clientName_ = name;
    return paNoError;
}

PaError PaJack_GetClientName(const char** clientName)
{
    PaError result = paNoError;
    PaJackHostApiRepresentation* jackHostApi = NULL;
    ENSURE_PA( PaUtil_GetHostApiRepresentation( (PaUtilHostApiRepresentation**)&jackHostApi, paJACK ) );
    *clientName = jack_get_client_name( jackHostApi->jack_client );

error:
    return result;
}





More information about the Pd-cvs mailing list