Update of /cvsroot/pure-data/pd/portaudio/src/hostapi/alsa In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19525/portaudio/src/hostapi/alsa
Added Files: pa_linux_alsa.c Log Message: CVS upload mistakes
--- NEW FILE: pa_linux_alsa.c --- /* * $Id: pa_linux_alsa.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 * ALSA implementation by Joshua Haberman and Arve Knudsen * * Copyright (c) 2002 Joshua Haberman joshua@haberman.com * Copyright (c) 2005-2006 Arve Knudsen aknuds-1@broadpark.no * * 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, * subject to the following conditions: [...3513 lines suppressed...]
error: return result; }
PaError PaAlsa_GetStreamOutputCard(PaStream* s, int* card) { PaAlsaStream *stream = (PaAlsaStream *) s; snd_pcm_info_t* pcmInfo; PaError result = paNoError;
/* XXX: More descriptive error? */ PA_UNLESS( stream->playback.pcm, paDeviceUnavailable );
snd_pcm_info_alloca( &pcmInfo ); PA_ENSURE( snd_pcm_info( stream->playback.pcm, pcmInfo ) ); *card = snd_pcm_info_get_card( pcmInfo );
error: return result; }