Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9097
Modified Files: Tag: desiredata s_audio_mmio.c Log Message: cleanup
Index: s_audio_mmio.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_audio_mmio.c,v retrieving revision 1.4.4.1.4.1 retrieving revision 1.4.4.1.4.2 diff -C2 -d -r1.4.4.1.4.1 -r1.4.4.1.4.2 *** s_audio_mmio.c 30 Jun 2007 20:28:14 -0000 1.4.4.1.4.1 --- s_audio_mmio.c 10 Jul 2007 05:47:28 -0000 1.4.4.1.4.2 *************** *** 9,23 **** #include "s_stuff.h" #include <stdio.h> - #include <windows.h> - #include <MMSYSTEM.H>
/* ------------------------- audio -------------------------- */
! static void nt_close_midiin(void); [...1223 lines suppressed...] } #endif
! void mmio_getdevs(char *indevlist, int *nindevs, char *outdevlist, int *noutdevs, int *canmulti, int maxndev, int devdescsize) { int wRtn, ndev, i; *canmulti = 2; /* supports multiple devices */ ndev = waveInGetNumDevs(); ! if (ndev > maxndev) ndev = maxndev; *nindevs = ndev; ! for (i = 0; i < ndev; i++) { WAVEINCAPS wicap; wRtn = waveInGetDevCaps(i, (LPWAVEINCAPS) &wicap, sizeof(wicap)); sprintf(indevlist + i * devdescsize, (wRtn ? "???" : wicap.szPname)); } ndev = waveOutGetNumDevs(); ! if (ndev > maxndev) ndev = maxndev; *noutdevs = ndev; ! for (i = 0; i < ndev; i++) { WAVEOUTCAPS wocap; wRtn = waveOutGetDevCaps(i, (LPWAVEOUTCAPS) &wocap, sizeof(wocap));