comparison src/portaudio-test.c @ 1656:7fb51f6d31af

package portaudio: add test program, disable built-in tests, and remove superflous shared flag
author Tony Theodore <tonyt@logyst.com>
date Wed, 16 Mar 2011 21:56:00 +1100
parents
children f653602a0500
comparison
equal deleted inserted replaced
1655:85199de32430 1656:7fb51f6d31af
1 /* This file is part of mingw-cross-env. */
2 /* See doc/index.html for further information. */
3
4 #include <portaudio.h>
5 #include <stdio.h>
6
7 int main()
8 {
9 int i;
10 const PaDeviceInfo *device_info;
11
12 Pa_Initialize();
13 printf("Version: %s\n", Pa_GetVersionText());
14 for( i = 0; i < Pa_GetDeviceCount(); i++ )
15 {
16 device_info = Pa_GetDeviceInfo(i);
17 printf("Device %d: %s %s\n", i, device_info->name, Pa_GetHostApiInfo(device_info->hostApi)->name);
18 }
19 Pa_Terminate();
20 return 0;
21 }