2 * This file has been modified for the cdrkit suite.
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).
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.
13 /* @(#)raw.c 1.4 01/10/27 Copyright 1998,1999 Heiko Eissfeldt */
18 static int InitSound(void);
20 static int InitSound()
25 static int ExitSound(void);
27 static int ExitSound()
32 static unsigned long GetHdrSize(void);
34 static unsigned long GetHdrSize()
39 static unsigned long InSizeToOutSize(unsigned long BytesToDo);
41 static unsigned long InSizeToOutSize(unsigned long BytesToDo)
46 struct soundfile rawsound =
48 (int (*)(int audio, long channels,
49 unsigned long myrate, long nBitsPerSample,
50 unsigned long expected_bytes)) InitSound,
52 (int (*)(int audio, unsigned long nBytesDone)) ExitSound,
56 (int (*)(int audio, unsigned char *buf, unsigned long BytesToDo)) write, /* get sound samples out */
58 InSizeToOutSize, /* compressed? output file size */
60 1 /* needs big endian samples */