|
|
1.1 root 1: #ifndef SN76496_H
2: #define SN76496_H
3:
4: #define MAX_76496 1
5:
6: struct SN76496
7: {
8: int SampleRate;
9: unsigned int UpdateStep;
10: int VolTable[16]; /* volume table */
11: int Register[8]; /* registers */
12: int LastRegister; /* last register written */
13: int Volume[4]; /* volume of voice 0-2 and noise */
14: unsigned int RNG; /* noise generator */
15: int NoiseFB; /* noise feedback mask */
16: int Period[4];
17: int Count[4];
18: int Output[4];
19: };
20:
21: extern struct SN76496 sn[MAX_76496];
22:
23: int SN76496Init(int chip, int clock, int gain, int sample_rate);
24: void SN76496Write(int chip, int data);
25: void SN76496Update(int chip, uint16 *buffer, int length);
26:
27: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.