summaryrefslogtreecommitdiffstats
path: root/src/audio_core/audio_renderer.h
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2021-06-20 16:23:16 +0200
committerKelebek1 <eeeedddccc@hotmail.co.uk>2021-06-27 16:58:07 +0200
commit0857d6a3dbcaeb30b51326419fb56d9b543601f1 (patch)
tree26221ce096533b188aa1fe8d7e82290780edee1d /src/audio_core/audio_renderer.h
parentMerge pull request #6526 from bunnei/doom-update (diff)
downloadyuzu-0857d6a3dbcaeb30b51326419fb56d9b543601f1.tar
yuzu-0857d6a3dbcaeb30b51326419fb56d9b543601f1.tar.gz
yuzu-0857d6a3dbcaeb30b51326419fb56d9b543601f1.tar.bz2
yuzu-0857d6a3dbcaeb30b51326419fb56d9b543601f1.tar.lz
yuzu-0857d6a3dbcaeb30b51326419fb56d9b543601f1.tar.xz
yuzu-0857d6a3dbcaeb30b51326419fb56d9b543601f1.tar.zst
yuzu-0857d6a3dbcaeb30b51326419fb56d9b543601f1.zip
Diffstat (limited to 'src/audio_core/audio_renderer.h')
-rw-r--r--src/audio_core/audio_renderer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/audio_core/audio_renderer.h b/src/audio_core/audio_renderer.h
index 18567f618..88fdd13dd 100644
--- a/src/audio_core/audio_renderer.h
+++ b/src/audio_core/audio_renderer.h
@@ -6,6 +6,7 @@
#include <array>
#include <memory>
+#include <mutex>
#include <vector>
#include "audio_core/behavior_info.h"
@@ -45,6 +46,8 @@ public:
[[nodiscard]] ResultCode UpdateAudioRenderer(const std::vector<u8>& input_params,
std::vector<u8>& output_params);
+ [[nodiscard]] ResultCode Start();
+ [[nodiscard]] ResultCode Stop();
void QueueMixedBuffer(Buffer::Tag tag);
void ReleaseAndQueueBuffers();
[[nodiscard]] u32 GetSampleRate() const;
@@ -68,6 +71,9 @@ private:
Core::Memory::Memory& memory;
CommandGenerator command_generator;
std::size_t elapsed_frame_count{};
+ Core::Timing::CoreTiming& core_timing;
+ std::shared_ptr<Core::Timing::EventType> process_event;
+ std::mutex mutex;
};
} // namespace AudioCore