summaryrefslogtreecommitdiffstats
path: root/src/audio_core/command_generator.h
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2021-07-06 16:01:18 +0200
committerKelebek1 <eeeedddccc@hotmail.co.uk>2021-07-06 19:43:23 +0200
commitdbcc093d88c9dd48e490430a6491106ea175aff0 (patch)
treec4f9b3eb4de4ba62a2b741bc43a2d88380413d2a /src/audio_core/command_generator.h
parentMerge pull request #6537 from Morph1984/warnings (diff)
downloadyuzu-dbcc093d88c9dd48e490430a6491106ea175aff0.tar
yuzu-dbcc093d88c9dd48e490430a6491106ea175aff0.tar.gz
yuzu-dbcc093d88c9dd48e490430a6491106ea175aff0.tar.bz2
yuzu-dbcc093d88c9dd48e490430a6491106ea175aff0.tar.lz
yuzu-dbcc093d88c9dd48e490430a6491106ea175aff0.tar.xz
yuzu-dbcc093d88c9dd48e490430a6491106ea175aff0.tar.zst
yuzu-dbcc093d88c9dd48e490430a6491106ea175aff0.zip
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,