diff options
| author | 2024-01-01 13:56:31 -0600 | |
|---|---|---|
| committer | 2024-01-01 13:56:31 -0600 | |
| commit | aa9ff2ffc2d9c3c1b7d6f4f6a7170acda7e17e9c (patch) | |
| tree | 3f7ca8e93b7bc523b8dd357ec43d302fd794b37c /src/audio_core | |
| parent | Merge pull request #12466 from liamwhite/sh2 (diff) | |
| parent | core_timing: block advance thread while clearing and signal after (diff) | |
| download | yuzu-aa9ff2ffc2d9c3c1b7d6f4f6a7170acda7e17e9c.tar.gz yuzu-aa9ff2ffc2d9c3c1b7d6f4f6a7170acda7e17e9c.tar.xz yuzu-aa9ff2ffc2d9c3c1b7d6f4f6a7170acda7e17e9c.zip | |
Merge pull request #12454 from liamwhite/ct-stuff
core_timing: minor refactors
Diffstat (limited to 'src/audio_core')
| -rw-r--r-- | src/audio_core/device/device_session.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/audio_core/device/device_session.cpp b/src/audio_core/device/device_session.cpp index c41d9d1ea..ee42ae529 100644 --- a/src/audio_core/device/device_session.cpp +++ b/src/audio_core/device/device_session.cpp | |||
| @@ -18,9 +18,7 @@ constexpr auto INCREMENT_TIME{5ms}; | |||
| 18 | DeviceSession::DeviceSession(Core::System& system_) | 18 | DeviceSession::DeviceSession(Core::System& system_) |
| 19 | : system{system_}, thread_event{Core::Timing::CreateEvent( | 19 | : system{system_}, thread_event{Core::Timing::CreateEvent( |
| 20 | "AudioOutSampleTick", | 20 | "AudioOutSampleTick", |
| 21 | [this](std::uintptr_t, s64 time, std::chrono::nanoseconds) { | 21 | [this](s64 time, std::chrono::nanoseconds) { return ThreadFunc(); })} {} |
| 22 | return ThreadFunc(); | ||
| 23 | })} {} | ||
| 24 | 22 | ||
| 25 | DeviceSession::~DeviceSession() { | 23 | DeviceSession::~DeviceSession() { |
| 26 | Finalize(); | 24 | Finalize(); |