SPU: Hide debug window by default
This commit is contained in:
parent
25209c3d58
commit
a55412c24a
|
@ -743,7 +743,7 @@ std::tuple<SPU::SampleFormat, SPU::SampleFormat> SPU::SampleVoice(u32 voice_inde
|
||||||
|
|
||||||
if (voice.current_block_flags.loop_start)
|
if (voice.current_block_flags.loop_start)
|
||||||
{
|
{
|
||||||
Log_DebugPrintf("Voice %u loop start @ 0x%08X", voice_index, ZeroExtend32(voice.current_address));
|
Log_TracePrintf("Voice %u loop start @ 0x%08X", voice_index, ZeroExtend32(voice.current_address));
|
||||||
voice.regs.adpcm_repeat_address = voice.current_address;
|
voice.regs.adpcm_repeat_address = voice.current_address;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -764,13 +764,13 @@ std::tuple<SPU::SampleFormat, SPU::SampleFormat> SPU::SampleVoice(u32 voice_inde
|
||||||
{
|
{
|
||||||
if (!voice.current_block_flags.loop_repeat)
|
if (!voice.current_block_flags.loop_repeat)
|
||||||
{
|
{
|
||||||
Log_DebugPrintf("Voice %u loop end+mute @ 0x%08X", voice_index, ZeroExtend32(voice.current_address));
|
Log_TracePrintf("Voice %u loop end+mute @ 0x%08X", voice_index, ZeroExtend32(voice.current_address));
|
||||||
m_endx_register |= (u32(1) << voice_index);
|
m_endx_register |= (u32(1) << voice_index);
|
||||||
voice.KeyOff();
|
voice.KeyOff();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log_DebugPrintf("Voice %u loop end+repeat @ 0x%08X", voice_index, ZeroExtend32(voice.current_address));
|
Log_TracePrintf("Voice %u loop end+repeat @ 0x%08X", voice_index, ZeroExtend32(voice.current_address));
|
||||||
voice.current_address = voice.regs.adpcm_repeat_address;
|
voice.current_address = voice.regs.adpcm_repeat_address;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -829,11 +829,11 @@ void SPU::GenerateSample()
|
||||||
|
|
||||||
void SPU::DrawDebugWindow()
|
void SPU::DrawDebugWindow()
|
||||||
{
|
{
|
||||||
if (!m_debug_window_open)
|
if (!m_show_spu_state)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ImGui::SetNextWindowSize(ImVec2(800, 400), ImGuiCond_FirstUseEver);
|
ImGui::SetNextWindowSize(ImVec2(800, 400), ImGuiCond_FirstUseEver);
|
||||||
if (!ImGui::Begin("SPU State", &m_debug_window_open))
|
if (!ImGui::Begin("SPU State", &m_show_spu_state))
|
||||||
{
|
{
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
return;
|
return;
|
||||||
|
@ -897,4 +897,5 @@ void SPU::DrawDebugWindow()
|
||||||
void SPU::DrawDebugMenu()
|
void SPU::DrawDebugMenu()
|
||||||
{
|
{
|
||||||
// TODO: Show RAM, etc.
|
// TODO: Show RAM, etc.
|
||||||
|
ImGui::MenuItem("Show State", nullptr, &m_show_spu_state);
|
||||||
}
|
}
|
||||||
|
|
|
@ -258,7 +258,7 @@ private:
|
||||||
DMA* m_dma = nullptr;
|
DMA* m_dma = nullptr;
|
||||||
InterruptController* m_interrupt_controller = nullptr;
|
InterruptController* m_interrupt_controller = nullptr;
|
||||||
AudioStream* m_audio_stream = nullptr;
|
AudioStream* m_audio_stream = nullptr;
|
||||||
bool m_debug_window_open = true;
|
bool m_show_spu_state = false;
|
||||||
|
|
||||||
SPUCNT m_SPUCNT = {};
|
SPUCNT m_SPUCNT = {};
|
||||||
SPUSTAT m_SPUSTAT = {};
|
SPUSTAT m_SPUSTAT = {};
|
||||||
|
|
Loading…
Reference in New Issue