SPU: Add a macro to enable per-voice dumping

This commit is contained in:
Connor McLaughlin
2021-08-07 13:21:53 +10:00
parent 50a09384e1
commit 4fac032ff6
2 changed files with 64 additions and 3 deletions

View File

@ -6,6 +6,9 @@
#include <array>
#include <memory>
// Enable to dump all voices of the SPU audio individually.
// #define SPU_DUMP_ALL_VOICES 1
class StateWrapper;
namespace Common {
@ -424,6 +427,11 @@ private:
InlineFIFOQueue<u16, FIFO_SIZE_IN_HALFWORDS> m_transfer_fifo;
std::array<u8, RAM_SIZE> m_ram{};
#ifdef SPU_DUMP_ALL_VOICES
// +1 for reverb output
std::array<std::unique_ptr<Common::WAVWriter>, NUM_VOICES + 1> m_voice_dump_writers;
#endif
};
extern SPU g_spu;