Remove unused audio namespace and clean up includes in APU and DSP files
This commit is contained in:
@@ -3,18 +3,14 @@
|
||||
#include <SDL.h>
|
||||
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
#include "app/emu/audio/dsp.h"
|
||||
#include "app/emu/audio/spc700.h"
|
||||
#include "app/emu/cpu/clock.h"
|
||||
#include "app/emu/memory/memory.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace emu {
|
||||
namespace audio {
|
||||
|
||||
static const double apuCyclesPerMaster = (32040 * 32) / (1364 * 262 * 60.0);
|
||||
static const double apuCyclesPerMasterPal = (32040 * 32) / (1364 * 312 * 50.0);
|
||||
@@ -200,7 +196,5 @@ void Apu::SpcWrite(uint16_t adr, uint8_t val) {
|
||||
|
||||
void Apu::SpcIdle(bool waiting) { Cycle(); }
|
||||
|
||||
} // namespace audio
|
||||
} // namespace emu
|
||||
|
||||
} // namespace yaze
|
||||
} // namespace yaze
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#define YAZE_APP_EMU_APU_H_
|
||||
|
||||
#include <cstdint>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <array>
|
||||
|
||||
@@ -12,9 +11,6 @@
|
||||
|
||||
namespace yaze {
|
||||
namespace emu {
|
||||
namespace audio {
|
||||
|
||||
using namespace memory;
|
||||
|
||||
typedef struct Timer {
|
||||
uint8_t cycles;
|
||||
@@ -92,9 +88,7 @@ class Apu {
|
||||
Spc700 spc700_{callbacks_};
|
||||
};
|
||||
|
||||
} // namespace audio
|
||||
} // namespace emu
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
namespace yaze {
|
||||
namespace emu {
|
||||
namespace audio {
|
||||
|
||||
static const int rateValues[32] = {0, 2048, 1536, 1280, 1024, 768, 640, 512,
|
||||
384, 320, 256, 192, 160, 128, 96, 80,
|
||||
@@ -630,7 +629,5 @@ void Dsp::GetSamples(int16_t* sample_data, int samples_per_frame,
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace audio
|
||||
} // namespace emu
|
||||
|
||||
} // namespace yaze
|
||||
} // namespace yaze
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
|
||||
namespace yaze {
|
||||
namespace emu {
|
||||
namespace audio {
|
||||
|
||||
typedef struct DspChannel {
|
||||
// pitch
|
||||
@@ -154,9 +153,7 @@ class Dsp {
|
||||
uint32_t lastFrameBoundary;
|
||||
};
|
||||
|
||||
} // namespace audio
|
||||
} // namespace emu
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
#endif // YAZE_APP_EMU_AUDIO_S_DSP_H
|
||||
#endif // YAZE_APP_EMU_AUDIO_S_DSP_H
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace yaze {
|
||||
namespace emu {
|
||||
namespace audio {
|
||||
|
||||
// adressing modes
|
||||
|
||||
@@ -145,7 +144,5 @@ uint16_t Spc700::addr_plus_i_indexed() {
|
||||
return read(addr) | (read(addr + 1) << 8);
|
||||
}
|
||||
|
||||
} // namespace audio
|
||||
} // namespace emu
|
||||
|
||||
} // namespace yaze
|
||||
} // namespace yaze
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace yaze {
|
||||
namespace emu {
|
||||
namespace audio {
|
||||
|
||||
// opcode functions
|
||||
|
||||
@@ -480,7 +479,5 @@ void Spc700::SLEEP() {}
|
||||
|
||||
void Spc700::STOP() {}
|
||||
|
||||
} // namespace audio
|
||||
} // namespace emu
|
||||
|
||||
} // namespace yaze
|
||||
} // namespace yaze
|
||||
|
||||
@@ -4,13 +4,11 @@
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "app/emu/audio/internal/opcodes.h"
|
||||
|
||||
namespace yaze {
|
||||
namespace emu {
|
||||
namespace audio {
|
||||
|
||||
void Spc700::Reset(bool hard) {
|
||||
if (hard) {
|
||||
@@ -1323,7 +1321,5 @@ void Spc700::LogInstruction(uint16_t initial_pc, uint8_t opcode) {
|
||||
// log_.push_back(log_entry);
|
||||
}
|
||||
|
||||
} // namespace audio
|
||||
} // namespace emu
|
||||
|
||||
} // namespace yaze
|
||||
|
||||
@@ -3,13 +3,10 @@
|
||||
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
namespace yaze {
|
||||
namespace emu {
|
||||
namespace audio {
|
||||
|
||||
/**
|
||||
* @brief AudioRam is an interface for the Audio RAM used by the SPC700.
|
||||
@@ -336,8 +333,7 @@ class Spc700 {
|
||||
// CBNE DBNZ
|
||||
};
|
||||
|
||||
} // namespace audio
|
||||
} // namespace emu
|
||||
|
||||
} // namespace yaze
|
||||
#endif // YAZE_APP_EMU_SPC700_H
|
||||
|
||||
#endif // YAZE_APP_EMU_SPC700_H
|
||||
|
||||
Reference in New Issue
Block a user