blob: c9b6ac923e0cebd05a8be678647bf89ceb4e2248 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "wav.h"
// Defenitions.
typedef unsigned char byte;
typedef unsigned short word;
typedef unsigned int dword;
// Prototypes.
void reversepol(void), // Reverse polarity.
gap(int), // i short pulses.
tapemark(int), // i long, i short and two long pulses.
writecs(word), // Write the checksum.
setspeed(int); // Define the waveform.
word writebyte(byte), // Write a byte and count the ones.
getfilesize(byte *); // Get the file size.
int assert(byte *, word); // See if the MZF file is valid.
|