Update of /cvsroot/audacity/lib-src/portaudio-v19/src/hostapi/asihpi
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv22516/src/hostapi/asihpi
Added Files:
pa_linux_asihpi.c
Log Message:
Bringing PortAudio up to their latest SVN sources.
--- NEW FILE: pa_linux_asihpi.c ---
/*
* PortAudio Portable Real-Time Audio Library
* Latest Version at: http://www.portaudio.com
*
* PortAudio v18 version of AudioScience HPI driver by Fred Gleason <[EMAIL
PROTECTED]>
* PortAudio v19 version of AudioScience HPI driver by Ludwig Schwardt <[EMAIL
PROTECTED]>
*
* Copyright (c) 2003 Fred Gleason
* Copyright (c) 2005,2006 Ludwig Schwardt
*
* 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:
*
* The above copyright notice and this permission notice shall be
[...2870 lines suppressed...]
static signed long GetStreamWriteAvailable( PaStream *s )
{
PaError result = paNoError;
PaAsiHpiStream *stream = (PaAsiHpiStream*)s;
PaAsiHpiStreamInfo info;
assert( stream );
PA_UNLESS_( stream->output, paCanNotWriteToAnInputOnlyStream );
PA_ENSURE_( PaAsiHpi_GetStreamInfo( stream->output, &info ) );
/* Round down to the nearest host buffer multiple */
result = (info.availableFrames / stream->maxFramesPerHostBuffer) *
stream->maxFramesPerHostBuffer;
if( info.underflow )
{
result = paOutputUnderflowed;
}
error:
return result;
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs