/*
* 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 */
};
syntax highlighted by Code2HTML, v. 0.9.1