diff options
Diffstat (limited to 'icedax/raw.c')
-rw-r--r-- | icedax/raw.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/icedax/raw.c b/icedax/raw.c new file mode 100644 index 0000000..b56841e --- /dev/null +++ b/icedax/raw.c @@ -0,0 +1,61 @@ +/* + * This file has been modified for the cdrkit suite. + * + * The behaviour and appearence of the program code below can differ to a major + * extent from the version distributed by the original author(s). + * + * For details, see Changelog file distributed with the cdrkit package. If you + * received this file from another source then ask the distributing person for + * a log of modifications. + * + */ + +/* @(#)raw.c 1.4 01/10/27 Copyright 1998,1999 Heiko Eissfeldt */ +#include "config.h" +#include <unixstd.h> +#include "sndfile.h" + +static int InitSound(void); + +static int InitSound() +{ + return 0; +} + +static int ExitSound(void); + +static int ExitSound() +{ + return 0; +} + +static unsigned long GetHdrSize(void); + +static unsigned long GetHdrSize() +{ + return 0L; +} + +static unsigned long InSizeToOutSize(unsigned long BytesToDo); + +static unsigned long InSizeToOutSize(unsigned long BytesToDo) +{ + return BytesToDo; +} + +struct soundfile rawsound = +{ + (int (*)(int audio, long channels, + unsigned long myrate, long nBitsPerSample, + unsigned long expected_bytes)) InitSound, + + (int (*)(int audio, unsigned long nBytesDone)) ExitSound, + + GetHdrSize, + + (int (*)(int audio, unsigned char *buf, unsigned long BytesToDo)) write, /* get sound samples out */ + + InSizeToOutSize, /* compressed? output file size */ + + 1 /* needs big endian samples */ +}; |