class library: SynthDef - lazy implementation of removeUGen
[supercollider.git] / include / lang / PyrFileUtils.h
blob7148512c24b3fa099622575f4674280a3809f4c8
1 /*
2 SuperCollider real time audio synthesis system
3 Copyright (c) 2002 James McCartney. All rights reserved.
4 http://www.audiosynth.com
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 Some utils for file i/o.
26 #ifndef _PYRFILEUTIL_H_
27 #define _PYRFILEUTIL_H_
29 int headerFormatFromSymbol(struct PyrSymbol *inSymbol);
30 int sampleFormatFromSymbol(struct PyrSymbol *inSymbol, int inHeaderFormat);
32 #ifdef __MAC__
34 #include <Files.h>
36 long setTypeCreator(unsigned char *filename, long type, long creator);
37 bool filelen(FILE *file, size_t *length);
39 int allocasync(int fildes, int count, IOParam *pb, IOCompletionUPP completionFunc);
40 int createasync(unsigned char *path, int oflag, HParamBlockRec *hpb, IOCompletionUPP completionFunc);
41 int openasync(unsigned char *path, int oflag, HParamBlockRec *hpb, IOCompletionUPP completionFunc);
42 int closeasync(int fildes, HParamBlockRec *hpb, IOCompletionUPP completionFunc);
43 int writeasync(int fildes, const char *buf, int count, IOParam *pb, IOCompletionUPP completionFunc);
44 int readasync(int fildes, char *buf, int count, IOParam *pb, IOCompletionUPP completionFunc);
45 int seekwriteasync(int fildes, const char *buf, int count, int pos, IOParam *pb, IOCompletionUPP completionFunc);
46 int seekreadasync(int fildes, char *buf, int count, int pos, IOParam *pb, IOCompletionUPP completionFunc);
49 #endif
50 #endif