$NetBSD: patch-ah,v 1.1.1.1 1999/12/04 12:56:31 scw Exp $ --- libaudiofile/audiofile.h.orig Mon Nov 15 13:33:40 1999 +++ libaudiofile/audiofile.h Tue Nov 30 21:05:09 1999 @@ -28,6 +28,9 @@ #include #include #include + +#define USE_STDIO + #include "ieee.h" #ifdef __cplusplus @@ -35,6 +38,12 @@ { #endif +#ifndef USE_STDIO +#define fhandle int +#else +#define fhandle FILE * +#endif + #define MAX32 4294967296LL #define MAX32_1 4294967295U #define MAX31 2147483648U @@ -134,7 +143,7 @@ typedef struct { int mode; - int file; + fhandle file; int actualBytes; int actualFrames; int ssndStart; @@ -286,15 +295,16 @@ const char *name, const char *mode, AFfilesetup setup); -AFfilehandle AFopenfd (int file,const char *mode,AFfilesetup setup); -AFfilehandle AFreadAIFF (int file); -AFfilehandle AFwriteAIFF (int file,AFfilesetup setup); -int AFgetfd (AFfilehandle handle); +AFfilehandle AFopenfd (fhandle file,const char *mode,AFfilesetup setup); +AFfilehandle AFreadAIFF (fhandle file); +AFfilehandle AFwriteAIFF (fhandle file,AFfilesetup setup); + +fhandle AFgetfd (AFfilehandle handle); int AFclosefile (AFfilehandle handle); int AFclosefileAIFF (AFfilehandle handle); int AFgetfilefmt (AFfilehandle handle,long *version); -int AFidentifyfd (int fd); +int AFidentifyfd (fhandle fd); double AFgetrate (AFfilehandle handle,int trackid); void AFgetsampfmt ( AFfilehandle handle,