summaryrefslogtreecommitdiff
path: root/icedax/raw.c
blob: b56841ea6f781b450dfba076bab3afad450d770c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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 */
};