Go to the documentation of this file.
5 #ifndef COMSQUARE_DSP_HPP
6 #define COMSQUARE_DSP_HPP
9 #include <SFML/Audio.hpp>
10 #include "../Memory/IMemory.hpp"
183 #endif //COMSQUARE_DSP_HPP
Registers _registers
All registers of the DSP.
Definition: DSP.hpp:160
bool kof6
Definition: DSP.hpp:68
uint8_t flg
Flags register.
Definition: DSP.hpp:80
bool eon5
Definition: DSP.hpp:137
uint8_t mvolL
Left output of the Main Volume register.
Definition: DSP.hpp:41
bool kof3
Definition: DSP.hpp:71
bool kon6
Definition: DSP.hpp:54
uint8_t gain[8]
Gain register.
Definition: DSP.hpp:34
uint8_t pitchL[8]
Lower 8 bits of pitch register.
Definition: DSP.hpp:22
bool non3
Definition: DSP.hpp:125
uint8_t adsr1[8]
Envelope register.
Definition: DSP.hpp:30
bool eon6
Definition: DSP.hpp:136
uint8_t read(uint24_t addr) override
Read from the internal DSP register.
Definition: DSP.cpp:19
bool pmon7
Definition: DSP.hpp:106
bool non1
Definition: DSP.hpp:127
bool non5
Definition: DSP.hpp:123
uint8_t volL[8]
Left channel volume register.
Definition: DSP.hpp:17
bool kof2
Definition: DSP.hpp:72
bool eon1
Definition: DSP.hpp:141
uint8_t pmon
Definition: DSP.hpp:115
bool endx7
Definition: DSP.hpp:85
uint8_t evolR
Right output of the Echo Volume register.
Definition: DSP.hpp:48
bool pmon1
Definition: DSP.hpp:112
bool kof7
Definition: DSP.hpp:67
bool endx1
Definition: DSP.hpp:91
uint8_t envx[8]
Envelope value register.
Definition: DSP.hpp:36
bool pmon3
Definition: DSP.hpp:110
uint8_t outx[8]
Wave height register.
Definition: DSP.hpp:38
bool kon5
Definition: DSP.hpp:55
unsigned uint24_t
Definition: Ints.hpp:8
bool kon3
Definition: DSP.hpp:57
bool endx0
Definition: DSP.hpp:92
bool non4
Definition: DSP.hpp:124
bool __
Definition: DSP.hpp:113
Common interface implemented by all components mapping memory.
Definition: IMemory.hpp:16
uint8_t non
Definition: DSP.hpp:130
bool kon4
Definition: DSP.hpp:56
bool kof1
Definition: DSP.hpp:73
uint8_t esa
Echo data start register.
Definition: DSP.hpp:150
bool non2
Definition: DSP.hpp:126
bool pmon4
Definition: DSP.hpp:109
void write(uint24_t addr, uint8_t data) override
Write data to the internal DSP register.
Definition: DSP.cpp:235
uint8_t eon
Definition: DSP.hpp:144
uint8_t endx
Definition: DSP.hpp:94
uint8_t mvolR
Right output of the Main Volume register.
Definition: DSP.hpp:43
uint8_t efb
Echo feedback register.
Definition: DSP.hpp:98
uint8_t srcn[8]
Source number register.
Definition: DSP.hpp:27
bool kof5
Definition: DSP.hpp:69
bool kof0
Definition: DSP.hpp:74
uint8_t pitchH[8]
Higher 8 bits of pitch register.
Definition: DSP.hpp:24
bool non7
Definition: DSP.hpp:121
bool eon0
Definition: DSP.hpp:142
All the registers of the DSP.
Definition: DSP.hpp:15
bool endx2
Definition: DSP.hpp:90
uint8_t adsr2[8]
Envelope controllers register.
Definition: DSP.hpp:32
bool non0
Definition: DSP.hpp:128
bool pmon6
Definition: DSP.hpp:107
uint8_t unused
Not used register.
Definition: DSP.hpp:101
bool endx5
Definition: DSP.hpp:87
sf::SoundBuffer _soundBuffer
A buffer containing current wave.
Definition: DSP.hpp:166
bool kon0
Definition: DSP.hpp:60
sf::Sound _channels[8]
8x channels of sample used to make sound
Definition: DSP.hpp:163
uint8_t kon
Definition: DSP.hpp:62
bool eon7
Definition: DSP.hpp:135
uint8_t volR[8]
Left channel volume register.
Definition: DSP.hpp:19
bool endx4
Definition: DSP.hpp:88
uint8_t coeff[8]
Echo FIR filter coefficients.
Definition: DSP.hpp:154
bool non6
Definition: DSP.hpp:122
bool endx3
Definition: DSP.hpp:89
bool kon1
Definition: DSP.hpp:59
bool pmon2
Definition: DSP.hpp:111
bool kon2
Definition: DSP.hpp:58
bool endx6
Definition: DSP.hpp:86
bool eon4
Definition: DSP.hpp:138
bool kof4
Definition: DSP.hpp:70
DSP()
Definition: DSP.cpp:10
uint8_t evolL
Left output of the Echo Volume register.
Definition: DSP.hpp:46
bool pmon5
Definition: DSP.hpp:108
bool eon2
Definition: DSP.hpp:140
uint8_t edl
Echo delay size register.
Definition: DSP.hpp:152
bool eon3
Definition: DSP.hpp:139
uint8_t kof
Definition: DSP.hpp:76
uint8_t dir
Source Directory offset register.
Definition: DSP.hpp:147
bool kon7
Definition: DSP.hpp:53