Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libsnes/bsnes/gameboy/apu/noise/noise.hpp
2 views
1
struct Noise {
2
bool enable;
3
4
uint4 envelope_volume;
5
bool envelope_direction;
6
uint3 envelope_frequency;
7
uint4 frequency;
8
bool narrow_lfsr;
9
unsigned divisor;
10
bool counter;
11
12
int16 output;
13
unsigned length;
14
uint3 envelope_period;
15
uint4 volume;
16
unsigned period;
17
uint15 lfsr;
18
19
bool dac_enable();
20
21
void run();
22
void clock_length();
23
void clock_envelope();
24
void write(unsigned r, uint8 data);
25
void power();
26
void serialize(serializer&);
27
};
28
29