diff options
Diffstat (limited to 'src/audio_core/voice_context.h')
| -rw-r--r-- | src/audio_core/voice_context.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/audio_core/voice_context.h b/src/audio_core/voice_context.h index 863248761..70359cadb 100644 --- a/src/audio_core/voice_context.h +++ b/src/audio_core/voice_context.h | |||
| @@ -86,28 +86,28 @@ struct BehaviorFlags { | |||
| 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 { | 88 | struct ADPCMContext { |
| 89 | u16 header{}; | 89 | u16 header; |
| 90 | s16 yn1{}; | 90 | s16 yn1; |
| 91 | s16 yn2{}; | 91 | s16 yn2; |
| 92 | }; | 92 | }; |
| 93 | static_assert(sizeof(ADPCMContext) == 0x6, "ADPCMContext is an invalid size"); | 93 | static_assert(sizeof(ADPCMContext) == 0x6, "ADPCMContext is an invalid size"); |
| 94 | 94 | ||
| 95 | struct VoiceState { | 95 | struct VoiceState { |
| 96 | s64 played_sample_count{}; | 96 | s64 played_sample_count; |
| 97 | s32 offset{}; | 97 | s32 offset; |
| 98 | s32 wave_buffer_index{}; | 98 | s32 wave_buffer_index; |
| 99 | std::array<bool, AudioCommon::MAX_WAVE_BUFFERS> is_wave_buffer_valid{}; | 99 | std::array<bool, AudioCommon::MAX_WAVE_BUFFERS> is_wave_buffer_valid; |
| 100 | s32 wave_buffer_consumed{}; | 100 | s32 wave_buffer_consumed; |
| 101 | std::array<s32, AudioCommon::MAX_SAMPLE_HISTORY> sample_history{}; | 101 | std::array<s32, AudioCommon::MAX_SAMPLE_HISTORY> sample_history; |
| 102 | s32 fraction{}; | 102 | s32 fraction; |
| 103 | VAddr context_address{}; | 103 | VAddr context_address; |
| 104 | Codec::ADPCM_Coeff coeff{}; | 104 | Codec::ADPCM_Coeff coeff; |
| 105 | ADPCMContext context{}; | 105 | ADPCMContext context; |
| 106 | std::array<s64, 2> biquad_filter_state{}; | 106 | std::array<s64, 2> biquad_filter_state; |
| 107 | std::array<s32, AudioCommon::MAX_MIX_BUFFERS> previous_samples{}; | 107 | std::array<s32, AudioCommon::MAX_MIX_BUFFERS> previous_samples; |
| 108 | u32 external_context_size{}; | 108 | u32 external_context_size; |
| 109 | bool is_external_context_used{}; | 109 | bool is_external_context_used; |
| 110 | bool voice_dropped{}; | 110 | bool voice_dropped; |
| 111 | }; | 111 | }; |
| 112 | 112 | ||
| 113 | class VoiceChannelResource { | 113 | class VoiceChannelResource { |