#include <DSP.hpp>
◆ DSP()
| ComSquare::APU::DSP::DSP::DSP |
( |
| ) |
|
|
explicit |
◆ read()
| uint8_t ComSquare::APU::DSP::DSP::read |
( |
uint24_t |
addr | ) |
|
|
overridevirtual |
Read from the internal DSP register.
- Parameters
-
| addr | The address to read from. The address 0x0 should refer to the first byte of the register. |
- Exceptions
-
| InvalidAddress | will be thrown if the address is more than $7F (the number of register). |
- Returns
- Return the value of the register.
Implements ComSquare::Memory::IMemory.
◆ write()
| void ComSquare::APU::DSP::DSP::write |
( |
uint24_t |
addr, |
|
|
uint8_t |
data |
|
) |
| |
|
overridevirtual |
Write data to the internal DSP register.
- Parameters
-
| addr | The address to write to. The address 0x0 should refer to the first byte of register. |
| data | The new value of the register. |
- Exceptions
-
| InvalidAddress | will be thrown if the address is more than $7F (the number of register). |
Implements ComSquare::Memory::IMemory.
◆ _channels
| sf::Sound ComSquare::APU::DSP::DSP::_channels[8] |
|
private |
8x channels of sample used to make sound
◆ _registers
| Registers ComSquare::APU::DSP::DSP::_registers {} |
|
private |
All registers of the DSP.
◆ _soundBuffer
| sf::SoundBuffer ComSquare::APU::DSP::DSP::_soundBuffer |
|
private |
A buffer containing current wave.
The documentation for this class was generated from the following files: