Max 5 API Reference
00001 #ifndef _EXT_SNDFILE_H_ 00002 #define _EXT_SNDFILE_H_ 00003 00004 #ifdef __cplusplus 00005 extern "C" { 00006 #endif 00007 00008 #if C74_PRAGMA_STRUCT_PACKPUSH 00009 #pragma pack(push, 2) 00010 #elif C74_PRAGMA_STRUCT_PACK 00011 #pragma pack(2) 00012 #endif 00013 00014 typedef struct _sndfileinfo 00015 { 00016 long sr; 00017 long length; 00018 long sampsize; // in bytes 00019 unsigned long filetype; 00020 unsigned long comptype; 00021 unsigned long format; 00022 char name[128]; 00023 long byteswap; 00024 long nchans; 00025 long frames; 00026 void *inst; 00027 void *markers; 00028 long framesize; 00029 long offset; 00030 } t_sndfileinfo; 00031 00032 short sndfile_info(char *filename, short vol, unsigned long type, t_sndfileinfo *info); 00033 long sndfile_writeheader(t_filehandle fh, long type, long size, long nchans, long ssize, long srate, unsigned long samptype); 00034 00035 #if C74_PRAGMA_STRUCT_PACKPUSH 00036 #pragma pack(pop) 00037 #elif C74_PRAGMA_STRUCT_PACK 00038 #pragma pack() 00039 #endif 00040 00041 #ifdef __cplusplus 00042 } 00043 #endif 00044 00045 #endif // _EXT_SNDFILE_H_
Copyright © 2008, Cycling '74