Remove AudioRam in favor of standard std::vector for spc700/dsp

This commit is contained in:
scawful
2024-04-24 10:08:57 -04:00
parent bd6fc2e8f1
commit 05df364ecb
4 changed files with 10 additions and 17 deletions

View File

@@ -85,7 +85,7 @@ typedef struct DspChannel {
class Dsp {
public:
Dsp(AudioRam& aram) : aram_(aram) {}
Dsp(std::vector<uint8_t>& aram) : aram_(aram) {}
void Reset();
@@ -114,7 +114,7 @@ class Dsp {
int16_t sample_buffer_[0x400 * 2]; // (1024 samples, *2 for stereo)
int16_t sample_offset_; // current offset in samplebuffer
AudioRam& aram_;
std::vector<uint8_t>& aram_;
// mirror ram
uint8_t ram[0x80];