aboutsummaryrefslogtreecommitdiff
path: root/src/audio_core/command_generator.h
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2021-07-06 15:01:18 +0100
committerKelebek1 <eeeedddccc@hotmail.co.uk>2021-07-06 18:43:23 +0100
commitdbcc093d88c9dd48e490430a6491106ea175aff0 (patch)
treec4f9b3eb4de4ba62a2b741bc43a2d88380413d2a /src/audio_core/command_generator.h
parentbf50345d4c13e34e69af0070632400b3472a1a11 (diff)
Support more PCM formats. Fixes Ys IX audio.
Diffstat (limited to 'src/audio_core/command_generator.h')
-rw-r--r--src/audio_core/command_generator.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/audio_core/command_generator.h b/src/audio_core/command_generator.h
index 673e4fbef..f310d7317 100644
--- a/src/audio_core/command_generator.h
+++ b/src/audio_core/command_generator.h
@@ -86,8 +86,9 @@ private:
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_start_offset,
- s32 sample_end_offset, s32 sample_count, s32 channel, std::size_t mix_offset);
+ template <typename T>
+ s32 DecodePcm(ServerVoiceInfo& voice_info, VoiceState& dsp_state, s32 sample_start_offset,
+ s32 sample_end_offset, s32 sample_count, s32 channel, std::size_t mix_offset);
s32 DecodeAdpcm(ServerVoiceInfo& voice_info, VoiceState& dsp_state, s32 sample_start_offset,
s32 sample_end_offset, s32 sample_count, s32 channel, std::size_t mix_offset);
void DecodeFromWaveBuffers(ServerVoiceInfo& voice_info, s32* output, VoiceState& dsp_state,