diff options
author | Liam <byteslice@airmail.cc> | 2024-02-21 04:18:57 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-21 04:51:39 +0100 |
commit | 2e4a6b7f92fbf73eb5173c9bda5c9b5b61f5458c (patch) | |
tree | f7a70d1218a3e52da4f4587ee9f1b8ce0dfd2c99 /src/audio_core | |
parent | audio: rewrite IHardwareOpusDecoder (diff) | |
download | yuzu-2e4a6b7f92fbf73eb5173c9bda5c9b5b61f5458c.tar yuzu-2e4a6b7f92fbf73eb5173c9bda5c9b5b61f5458c.tar.gz yuzu-2e4a6b7f92fbf73eb5173c9bda5c9b5b61f5458c.tar.bz2 yuzu-2e4a6b7f92fbf73eb5173c9bda5c9b5b61f5458c.tar.lz yuzu-2e4a6b7f92fbf73eb5173c9bda5c9b5b61f5458c.tar.xz yuzu-2e4a6b7f92fbf73eb5173c9bda5c9b5b61f5458c.tar.zst yuzu-2e4a6b7f92fbf73eb5173c9bda5c9b5b61f5458c.zip |
Diffstat (limited to 'src/audio_core')
-rw-r--r-- | src/audio_core/opus/parameters.h | 4 | ||||
-rw-r--r-- | src/audio_core/renderer/behavior/info_updater.cpp | 7 | ||||
-rw-r--r-- | src/audio_core/renderer/memory/pool_mapper.cpp | 4 |
3 files changed, 8 insertions, 7 deletions
diff --git a/src/audio_core/opus/parameters.h b/src/audio_core/opus/parameters.h index 4c54b2825..47c418b9f 100644 --- a/src/audio_core/opus/parameters.h +++ b/src/audio_core/opus/parameters.h @@ -20,7 +20,7 @@ struct OpusParametersEx { /* 0x00 */ u32 sample_rate; /* 0x04 */ u32 channel_count; /* 0x08 */ bool use_large_frame_size; - /* 0x09 */ INSERT_PADDING_BYTES(7); + /* 0x09 */ INSERT_PADDING_BYTES_NOINIT(7); }; // size = 0x10 static_assert(sizeof(OpusParametersEx) == 0x10, "OpusParametersEx has the wrong size!"); @@ -40,7 +40,7 @@ struct OpusMultiStreamParametersEx { /* 0x08 */ u32 total_stream_count; /* 0x0C */ u32 stereo_stream_count; /* 0x10 */ bool use_large_frame_size; - /* 0x11 */ INSERT_PADDING_BYTES(7); + /* 0x11 */ INSERT_PADDING_BYTES_NOINIT(7); /* 0x18 */ std::array<u8, OpusStreamCountMax + 1> mappings; }; // size = 0x118 static_assert(sizeof(OpusMultiStreamParametersEx) == 0x118, diff --git a/src/audio_core/renderer/behavior/info_updater.cpp b/src/audio_core/renderer/behavior/info_updater.cpp index 163127789..3dae6069f 100644 --- a/src/audio_core/renderer/behavior/info_updater.cpp +++ b/src/audio_core/renderer/behavior/info_updater.cpp @@ -19,9 +19,10 @@ namespace AudioCore::Renderer { InfoUpdater::InfoUpdater(std::span<const u8> input_, std::span<u8> output_, Kernel::KProcess* process_handle_, BehaviorInfo& behaviour_) - : input{input_.data() + sizeof(UpdateDataHeader)}, input_origin{input_}, - output{output_.data() + sizeof(UpdateDataHeader)}, output_origin{output_}, - in_header{reinterpret_cast<const UpdateDataHeader*>(input_origin.data())}, + : input{input_.data() + sizeof(UpdateDataHeader)}, + input_origin{input_}, output{output_.data() + sizeof(UpdateDataHeader)}, + output_origin{output_}, in_header{reinterpret_cast<const UpdateDataHeader*>( + input_origin.data())}, out_header{reinterpret_cast<UpdateDataHeader*>(output_origin.data())}, expected_input_size{input_.size()}, expected_output_size{output_.size()}, process_handle{process_handle_}, behaviour{behaviour_} { diff --git a/src/audio_core/renderer/memory/pool_mapper.cpp b/src/audio_core/renderer/memory/pool_mapper.cpp index 1df786feb..e47eb66d5 100644 --- a/src/audio_core/renderer/memory/pool_mapper.cpp +++ b/src/audio_core/renderer/memory/pool_mapper.cpp @@ -13,8 +13,8 @@ PoolMapper::PoolMapper(Kernel::KProcess* process_handle_, bool force_map_) PoolMapper::PoolMapper(Kernel::KProcess* process_handle_, std::span<MemoryPoolInfo> pool_infos_, u32 pool_count_, bool force_map_) - : process_handle{process_handle_}, pool_infos{pool_infos_.data()}, pool_count{pool_count_}, - force_map{force_map_} {} + : process_handle{process_handle_}, pool_infos{pool_infos_.data()}, + pool_count{pool_count_}, force_map{force_map_} {} void PoolMapper::ClearUseState(std::span<MemoryPoolInfo> pools, const u32 count) { for (u32 i = 0; i < count; i++) { |