Update of /cvsroot/pure-data/pd/portaudio/pa_linux_alsa In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15364/portaudio/pa_linux_alsa
Added Files: pa_linux_alsa.c pa_linux_alsa.h Log Message: ... more changes to try to upload 0.38 test 5 to CVS
--- NEW FILE: pa_linux_alsa.c --- /* * $Id: pa_linux_alsa.c,v 1.3 2004/09/06 20:44:39 millerpuckette Exp $ * PortAudio Portable Real-Time Audio Library * Latest Version at: http://www.portaudio.com * ALSA implementation by Joshua Haberman * * Copyright (c) 2002 Joshua Haberman joshua@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, * subject to the following conditions: * [...2773 lines suppressed...] /* Initialize host api specific structure */ void PaAlsa_InitializeStreamInfo( PaAlsaStreamInfo *info ) { info->size = sizeof (PaAlsaStreamInfo); info->hostApiType = paALSA; info->version = 1; info->deviceString = NULL; }
void PaAlsa_EnableRealtimeScheduling( PaStream *s, int enable ) { PaAlsaStream *stream = (PaAlsaStream *) s; stream->threading.rtSched = enable; }
void PaAlsa_EnableWatchdog( PaStream *s, int enable ) { PaAlsaStream *stream = (PaAlsaStream *) s; stream->threading.useWatchdog = enable; }
--- NEW FILE: pa_linux_alsa.h --- #ifndef PA_LINUX_ALSA_H #define PA_LINUX_ALSA_H
#ifdef __cplusplus extern "C" { #endif
typedef struct PaAlsaStreamInfo { unsigned long size; PaHostApiTypeId hostApiType; unsigned long version;
const char *deviceString; } PaAlsaStreamInfo;
void PaAlsa_InitializeStreamInfo( PaAlsaStreamInfo *info );
void PaAlsa_EnableRealtimeScheduling( PaStream *s, int enable );
void PaAlsa_EnableWatchdog( PaStream *s, int enable );
#ifdef __cplusplus } #endif
#endif