diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-17 09:55:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 09:55:10 +0100 |
commit | e8401964b4cb617223554e147091f109dc870ba5 (patch) | |
tree | 0e963c000006ca547044bdc628177311fa0dc585 /src/audio_core | |
parent | Merge pull request #5745 from lioncash/documentation (diff) | |
parent | core/cmake: Enforce Wclass-memaccess (diff) | |
download | yuzu-e8401964b4cb617223554e147091f109dc870ba5.tar yuzu-e8401964b4cb617223554e147091f109dc870ba5.tar.gz yuzu-e8401964b4cb617223554e147091f109dc870ba5.tar.bz2 yuzu-e8401964b4cb617223554e147091f109dc870ba5.tar.lz yuzu-e8401964b4cb617223554e147091f109dc870ba5.tar.xz yuzu-e8401964b4cb617223554e147091f109dc870ba5.tar.zst yuzu-e8401964b4cb617223554e147091f109dc870ba5.zip |
Diffstat (limited to 'src/audio_core')
-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 { static_assert(sizeof(BehaviorFlags) == 0x4, "BehaviorFlags is an invalid size"); struct ADPCMContext { - u16 header{}; - s16 yn1{}; - s16 yn2{}; + u16 header; + s16 yn1; + s16 yn2; }; static_assert(sizeof(ADPCMContext) == 0x6, "ADPCMContext is an invalid size"); struct VoiceState { - s64 played_sample_count{}; - s32 offset{}; - s32 wave_buffer_index{}; - std::array<bool, AudioCommon::MAX_WAVE_BUFFERS> is_wave_buffer_valid{}; - s32 wave_buffer_consumed{}; - std::array<s32, AudioCommon::MAX_SAMPLE_HISTORY> sample_history{}; - s32 fraction{}; - VAddr context_address{}; - Codec::ADPCM_Coeff coeff{}; - ADPCMContext context{}; - std::array<s64, 2> biquad_filter_state{}; - std::array<s32, AudioCommon::MAX_MIX_BUFFERS> previous_samples{}; - u32 external_context_size{}; - bool is_external_context_used{}; - bool voice_dropped{}; + s64 played_sample_count; + s32 offset; + s32 wave_buffer_index; + std::array<bool, AudioCommon::MAX_WAVE_BUFFERS> is_wave_buffer_valid; + s32 wave_buffer_consumed; + std::array<s32, AudioCommon::MAX_SAMPLE_HISTORY> sample_history; + s32 fraction; + VAddr context_address; + Codec::ADPCM_Coeff coeff; + ADPCMContext context; + std::array<s64, 2> biquad_filter_state; + std::array<s32, AudioCommon::MAX_MIX_BUFFERS> previous_samples; + u32 external_context_size; + bool is_external_context_used; + bool voice_dropped; }; class VoiceChannelResource { |