This commit is contained in:
rob_bielik 2011-02-17 15:56:04 +00:00
commit 59f8c8975c
11 changed files with 682 additions and 180 deletions

View file

@ -3,7 +3,7 @@
@brief List available devices, including device information.
@author Phil Burk http://www.softsynth.com
@note Define PA_NO_ASIO to compile this code on Windows without
@note Define PA_USE_ASIO=0 to compile this code on Windows without
ASIO support.
*/
/*
@ -49,7 +49,7 @@
#include "portaudio.h"
#ifdef WIN32
#ifndef PA_NO_ASIO
#if PA_USE_ASIO
#include "pa_asio.h"
#endif
#endif
@ -167,7 +167,7 @@ int main(void)
printf( "Default high output latency = %8.3f\n", deviceInfo->defaultHighOutputLatency );
#ifdef WIN32
#ifndef PA_NO_ASIO
#if PA_USE_ASIO
/* ASIO specific latency information */
if( Pa_GetHostApiInfo( deviceInfo->hostApi )->type == paASIO ){
long minLatency, maxLatency, preferredLatency, granularity;
@ -184,7 +184,7 @@ int main(void)
else
printf( "ASIO buffer granularity = %ld\n", granularity );
}
#endif /* !PA_NO_ASIO */
#endif /* PA_USE_ASIO */
#endif /* WIN32 */
printf( "Default sample rate = %8.2f\n", deviceInfo->defaultSampleRate );