diff options
Diffstat (limited to 'src/audio_core/voice_context.h')
| -rw-r--r-- | src/audio_core/voice_context.h | 9 |
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 { | |||
| 85 | }; | 85 | }; |
| 86 | static_assert(sizeof(BehaviorFlags) == 0x4, "BehaviorFlags is an invalid size"); | 86 | static_assert(sizeof(BehaviorFlags) == 0x4, "BehaviorFlags is an invalid size"); |
| 87 | 87 | ||
| 88 | struct ADPCMContext { | ||
| 89 | u16 header{}; | ||
| 90 | s16 yn1{}; | ||
| 91 | s16 yn2{}; | ||
| 92 | }; | ||
| 93 | static_assert(sizeof(ADPCMContext) == 0x6, "ADPCMContext is an invalid size"); | ||
| 94 | |||
| 88 | struct VoiceState { | 95 | struct VoiceState { |
| 89 | s64 played_sample_count{}; | 96 | s64 played_sample_count{}; |
| 90 | s32 offset{}; | 97 | s32 offset{}; |
| @@ -95,7 +102,7 @@ struct VoiceState { | |||
| 95 | s32 fraction{}; | 102 | s32 fraction{}; |
| 96 | VAddr context_address{}; | 103 | VAddr context_address{}; |
| 97 | Codec::ADPCM_Coeff coeff{}; | 104 | Codec::ADPCM_Coeff coeff{}; |
| 98 | Codec::ADPCMState context{}; | 105 | ADPCMContext context{}; |
| 99 | std::array<s64, 2> biquad_filter_state{}; | 106 | std::array<s64, 2> biquad_filter_state{}; |
| 100 | std::array<s32, AudioCommon::MAX_MIX_BUFFERS> previous_samples{}; | 107 | std::array<s32, AudioCommon::MAX_MIX_BUFFERS> previous_samples{}; |
| 101 | u32 external_context_size{}; | 108 | u32 external_context_size{}; |