]> Shamusworld >> Repos - apple2/blob - src/ay8910.h
Conversion of V65C02 to pointers, misc. whitespace cleanups.
[apple2] / src / ay8910.h
1 #ifndef AY8910_H
2 #define AY8910_H
3
4 #include <stdint.h>
5
6 #define USE_NEW_AY8910
7
8 #define MAX_8910 4
9
10 #ifndef USE_NEW_AY8910
11 void _AYWriteReg(int n, int r, int v);
12 void AY8910_reset(int chip);
13 void AY8910Update(int chip, int16_t ** buffer, int length);
14
15 void AY8910_InitAll(int clock, int sampleRate);
16 void AY8910_InitClock(int clock);
17 #else
18
19 // Exported functions
20 void AYInit(void);
21 void AYReset(int chipNum);
22 void AYWrite(int chipNum, int reg, int value);
23 uint16_t AYGetSample(int chipNum);
24
25 // Exported variables
26 extern bool logAYInternal;
27 extern float maxVolume;
28 #endif
29
30 #endif
31