summaryrefslogtreecommitdiffstats
path: root/src/audio_core/renderer/behavior
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-02-21 02:02:36 +0100
committerLiam <byteslice@airmail.cc>2024-02-21 04:15:37 +0100
commit6012c9fe3af1c649e5ac6392dc4b74bd3cfd0c4f (patch)
tree0c4925aa6e1c67ab3f91723c690ebfce90089356 /src/audio_core/renderer/behavior
parentaudio: split IHardwarweOpusDecoder, move IHardwareOpusDecoderManager (diff)
downloadyuzu-6012c9fe3af1c649e5ac6392dc4b74bd3cfd0c4f.tar
yuzu-6012c9fe3af1c649e5ac6392dc4b74bd3cfd0c4f.tar.gz
yuzu-6012c9fe3af1c649e5ac6392dc4b74bd3cfd0c4f.tar.bz2
yuzu-6012c9fe3af1c649e5ac6392dc4b74bd3cfd0c4f.tar.lz
yuzu-6012c9fe3af1c649e5ac6392dc4b74bd3cfd0c4f.tar.xz
yuzu-6012c9fe3af1c649e5ac6392dc4b74bd3cfd0c4f.tar.zst
yuzu-6012c9fe3af1c649e5ac6392dc4b74bd3cfd0c4f.zip
Diffstat (limited to 'src/audio_core/renderer/behavior')
-rw-r--r--src/audio_core/renderer/behavior/info_updater.cpp9
-rw-r--r--src/audio_core/renderer/behavior/info_updater.h10
2 files changed, 11 insertions, 8 deletions
diff --git a/src/audio_core/renderer/behavior/info_updater.cpp b/src/audio_core/renderer/behavior/info_updater.cpp
index 667711e17..163127789 100644
--- a/src/audio_core/renderer/behavior/info_updater.cpp
+++ b/src/audio_core/renderer/behavior/info_updater.cpp
@@ -18,11 +18,10 @@
namespace AudioCore::Renderer {
InfoUpdater::InfoUpdater(std::span<const u8> input_, std::span<u8> output_,
- const u32 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())},
+ 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())},
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/behavior/info_updater.h b/src/audio_core/renderer/behavior/info_updater.h
index fb4b7d25a..4f27a817e 100644
--- a/src/audio_core/renderer/behavior/info_updater.h
+++ b/src/audio_core/renderer/behavior/info_updater.h
@@ -8,6 +8,10 @@
#include "common/common_types.h"
#include "core/hle/service/audio/errors.h"
+namespace Kernel {
+class KProcess;
+}
+
namespace AudioCore::Renderer {
class BehaviorInfo;
class VoiceContext;
@@ -39,8 +43,8 @@ class InfoUpdater {
static_assert(sizeof(UpdateDataHeader) == 0x40, "UpdateDataHeader has the wrong size!");
public:
- explicit InfoUpdater(std::span<const u8> input, std::span<u8> output, u32 process_handle,
- BehaviorInfo& behaviour);
+ explicit InfoUpdater(std::span<const u8> input, std::span<u8> output,
+ Kernel::KProcess* process_handle, BehaviorInfo& behaviour);
/**
* Update the voice channel resources.
@@ -197,7 +201,7 @@ private:
/// Expected output size, see CheckConsumedSize
u64 expected_output_size;
/// Unused
- u32 process_handle;
+ Kernel::KProcess* process_handle;
/// Behaviour
BehaviorInfo& behaviour;
};