DSPHLE/Zelda: add another 32-bit getter/setter (NFC)

This commit is contained in:
Tillmann Karras 2023-12-28 23:57:42 +01:00
parent 3ba333fd34
commit ca69c60e1b
1 changed files with 2 additions and 2 deletions

View File

@ -950,6 +950,7 @@ struct ReverbPB
// Base address of the circular buffer in MRAM.
u16 circular_buffer_base_h;
u16 circular_buffer_base_l;
DEFINE_32BIT_ACCESSOR(circular_buffer_base, CircularBufferBase)
struct Destination
{
@ -1059,8 +1060,7 @@ void ZeldaAudioRenderer::ApplyReverb(bool post_rendering)
u16 mram_buffer_idx = m_reverb_pb_frames_count[rpb_idx];
u32 mram_addr = ((rpb.circular_buffer_base_h << 16) | rpb.circular_buffer_base_l) +
mram_buffer_idx * 0x50 * sizeof(s16);
u32 mram_addr = rpb.GetCircularBufferBase() + mram_buffer_idx * 0x50 * sizeof(s16);
s16* mram_ptr = (s16*)HLEMemory_Get_Pointer(mram_addr);
if (!post_rendering)