Debian Codegraph @

src/engine/platform/sound/t6w28/T6W28_Oscs.h

raw
1
2 // Private oscillators used by T6W28_Apu
3
4 // T6W28_Snd_Emu
5
6 #ifndef SMS_OSCS_H
7 #define SMS_OSCS_H
8
9 namespace MDFN_IEN_NGP
10 {
11
12 struct T6W28_Osc
13 {
14 blip_buffer_t* outputs[2];
15 DivDispatchOscBuffer* oscBuf;
16 int output_select;
17
18 int delay;
19 int last_amp_left;
20 int last_amp_right;
21
22 int volume_left;
23 int volume_right;
24
25 T6W28_Osc();
26 void reset();
27 };
28
29 struct T6W28_Square : T6W28_Osc
30 {
31 int period;
32 int phase;
33
34 void reset();
35 void run( sms_time_t, sms_time_t );
36 };
37
38 struct T6W28_Noise : T6W28_Osc
39 {
40 const int* period;
41 int period_extra;
42 unsigned shifter;
43 unsigned tap;
44
45 void reset();
46 void run( sms_time_t, sms_time_t );
47 };
48
49 }
50
51 #endif
52