Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libsnes/bsnes/gameboy/apu/wave/wave.hpp
2 views
1
struct Wave {
2
bool enable;
3
4
bool dac_enable;
5
unsigned volume_shift;
6
uint11 frequency;
7
bool counter;
8
uint8 pattern[32];
9
10
int16 output;
11
unsigned length;
12
unsigned period;
13
uint5 pattern_offset;
14
uint4 pattern_sample;
15
16
void run();
17
void clock_length();
18
void write(unsigned r, uint8 data);
19
void write_pattern(unsigned p, uint8 data);
20
void power();
21
void serialize(serializer&);
22
};
23
24