Imported Upstream version 1.1.11
[platform/upstream/cdrkit.git] / icedax / raw.c
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 /* @(#)raw.c    1.4 01/10/27 Copyright 1998,1999 Heiko Eissfeldt */
14 #include "config.h"
15 #include <unixstd.h>
16 #include "sndfile.h"
17
18 static int InitSound(void);
19
20 static int InitSound()
21 {
22   return 0;
23 }
24
25 static int ExitSound(void);
26
27 static int ExitSound()
28 {
29   return 0;
30 }
31
32 static unsigned long GetHdrSize(void);
33
34 static unsigned long GetHdrSize()
35 {
36   return 0L;
37 }
38
39 static unsigned long InSizeToOutSize(unsigned long BytesToDo);
40
41 static unsigned long InSizeToOutSize(unsigned long BytesToDo)
42 {
43         return BytesToDo;
44 }
45
46 struct soundfile rawsound =
47 {
48   (int (*)(int audio, long channels,
49                  unsigned long myrate, long nBitsPerSample,
50                  unsigned long expected_bytes)) InitSound,
51
52   (int (*)(int audio, unsigned long nBytesDone)) ExitSound,
53
54   GetHdrSize,
55
56   (int (*)(int audio, unsigned char *buf, unsigned long BytesToDo)) write,              /* get sound samples out */
57
58   InSizeToOutSize,      /* compressed? output file size */
59
60   1             /* needs big endian samples */
61 };