summaryrefslogtreecommitdiffstats
path: root/src/audio_core/voice_context.h
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-08-14 13:04:28 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2020-08-14 13:04:28 +0200
commit1b3d86c02fbc82db4dfd7b0ce908d02e48b5a35d (patch)
tree1ee73fbd3c507806a57597e38eb0030e641a5489 /src/audio_core/voice_context.h
parentmix buffer depopping (diff)
downloadyuzu-1b3d86c02fbc82db4dfd7b0ce908d02e48b5a35d.tar
yuzu-1b3d86c02fbc82db4dfd7b0ce908d02e48b5a35d.tar.gz
yuzu-1b3d86c02fbc82db4dfd7b0ce908d02e48b5a35d.tar.bz2
yuzu-1b3d86c02fbc82db4dfd7b0ce908d02e48b5a35d.tar.lz
yuzu-1b3d86c02fbc82db4dfd7b0ce908d02e48b5a35d.tar.xz
yuzu-1b3d86c02fbc82db4dfd7b0ce908d02e48b5a35d.tar.zst
yuzu-1b3d86c02fbc82db4dfd7b0ce908d02e48b5a35d.zip
Diffstat (limited to '')
-rw-r--r--src/audio_core/voice_context.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/audio_core/voice_context.h b/src/audio_core/voice_context.h
index 13b0a7f0f..59d3d7dfb 100644
--- a/src/audio_core/voice_context.h
+++ b/src/audio_core/voice_context.h
@@ -85,6 +85,13 @@ struct BehaviorFlags {
};
static_assert(sizeof(BehaviorFlags) == 0x4, "BehaviorFlags is an invalid size");
+struct ADPCMContext {
+ u16 header{};
+ s16 yn1{};
+ s16 yn2{};
+};
+static_assert(sizeof(ADPCMContext) == 0x6, "ADPCMContext is an invalid size");
+
struct VoiceState {
s64 played_sample_count{};
s32 offset{};
@@ -95,7 +102,7 @@ struct VoiceState {
s32 fraction{};
VAddr context_address{};
Codec::ADPCM_Coeff coeff{};
- Codec::ADPCMState context{};
+ ADPCMContext context{};
std::array<s64, 2> biquad_filter_state{};
std::array<s32, AudioCommon::MAX_MIX_BUFFERS> previous_samples{};
u32 external_context_size{};