aboutsummaryrefslogtreecommitdiff
path: root/src/audio_core/command_generator.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-02-14 20:09:15 -0800
committerGitHub <noreply@github.com>2021-02-14 20:09:15 -0800
commit8378b8a61feb971fc4b8af8468938e4691c2cfb7 (patch)
tree6df36c0a553a72ad4ec5dca2a5134b44d0f31849 /src/audio_core/command_generator.h
parentb0a39153512b1efc031f31e80924e6c14068f4a1 (diff)
parent7ad63ea542c69b4d7d495a38aa247b4958989ee7 (diff)
Merge pull request #5909 from ogniK5377/I3dl2Reverb
audren: Implement I3dl2Reverb
Diffstat (limited to 'src/audio_core/command_generator.h')
-rw-r--r--src/audio_core/command_generator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/audio_core/command_generator.h b/src/audio_core/command_generator.h
index b937350b1..2ebb755b0 100644
--- a/src/audio_core/command_generator.h
+++ b/src/audio_core/command_generator.h
@@ -21,6 +21,8 @@ class ServerMixInfo;
class EffectContext;
class EffectBase;
struct AuxInfoDSP;
+struct I3dl2ReverbParams;
+struct I3dl2ReverbState;
using MixVolumeBuffer = std::array<float, AudioCommon::MAX_MIX_BUFFERS>;
class CommandGenerator {
@@ -80,6 +82,9 @@ private:
s32 ReadAuxBuffer(AuxInfoDSP& recv_info, VAddr recv_buffer, u32 max_samples, s32* out_data,
u32 sample_count, u32 read_offset, u32 read_count);
+ void InitializeI3dl2Reverb(I3dl2ReverbParams& info, I3dl2ReverbState& state,
+ std::vector<u8>& work_buffer);
+ void UpdateI3dl2Reverb(I3dl2ReverbParams& info, I3dl2ReverbState& state, bool should_clear);
// DSP Code
s32 DecodePcm16(ServerVoiceInfo& voice_info, VoiceState& dsp_state, s32 sample_count,
s32 channel, std::size_t mix_offset);