patch: make *outfile extern
[platform/upstream/cdrkit.git] / icedax / sndfile.h
1 /*
2  * This file has been modified for the cdrkit suite.
3  *
4  * The behaviour and appearence of the program code below can differ to a major
5  * extent from the version distributed by the original author(s).
6  *
7  * For details, see Changelog file distributed with the cdrkit package. If you
8  * received this file from another source then ask the distributing person for
9  * a log of modifications.
10  *
11  */
12
13 /* @(#)sndfile.h        1.4 06/02/19 Copyright 1998,1999 Heiko Eissfeldt, Copyright 2006 J. Schilling */
14
15 /*
16  * generic soundfile structure
17  */
18
19 #ifndef _SNDFILE_H
20 #define _SNDFILE_H
21
22 #include <utypes.h>
23
24 struct soundfile {
25         int     (* InitSound)(int audio, long channels, Ulong rate,
26                                                           long nBitsPerSample,
27                                                           Ulong expected_bytes);
28         int     (* ExitSound)(int audio, Ulong nBytesDone);
29         Ulong   (* GetHdrSize)(void);
30         int     (* WriteSound)(int audio, unsigned char *buf, Ulong BytesToDo);
31         Ulong   (* InSizeToOutSize)(Ulong BytesToDo);
32
33         int     need_big_endian;
34 };
35
36 #endif  /* _SNDFILE_H */