summaryrefslogtreecommitdiffstats
path: root/src/audio_core/renderer/sink/device_sink_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio_core/renderer/sink/device_sink_info.h')
-rw-r--r--src/audio_core/renderer/sink/device_sink_info.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/audio_core/renderer/sink/device_sink_info.h b/src/audio_core/renderer/sink/device_sink_info.h
new file mode 100644
index 000000000..a1c441454
--- /dev/null
+++ b/src/audio_core/renderer/sink/device_sink_info.h
@@ -0,0 +1,40 @@
+// SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "audio_core/renderer/sink/sink_info_base.h"
+#include "common/common_types.h"
+
+namespace AudioCore::AudioRenderer {
+/**
+ * Info for a device sink.
+ */
+class DeviceSinkInfo : public SinkInfoBase {
+public:
+ DeviceSinkInfo();
+
+ /**
+ * Clean up for info, resetting it to a default state.
+ */
+ void CleanUp() override;
+
+ /**
+ * Update the info according to parameters, and write the current state to out_status.
+ *
+ * @param error_info - Output error code.
+ * @param out_status - Output status.
+ * @param in_params - Input parameters.
+ * @param pool_mapper - Unused.
+ */
+ void Update(BehaviorInfo::ErrorInfo& error_info, OutStatus& out_status,
+ const InParameter& in_params, const PoolMapper& pool_mapper) override;
+
+ /**
+ * Update the device sink on command generation, unused.
+ */
+ void UpdateForCommandGeneration() override;
+};
+static_assert(sizeof(DeviceSinkInfo) <= sizeof(SinkInfoBase), "DeviceSinkInfo is too large!");
+
+} // namespace AudioCore::AudioRenderer