aboutsummaryrefslogtreecommitdiff
path: root/src/audio_core/renderer/system_manager.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-05-25 21:34:50 -0700
committerGitHub <noreply@github.com>2023-05-25 21:34:50 -0700
commit83b502c08cf520166d09b8841f7b8874d35dce4f (patch)
tree041901aad11e998b5424c50c6c5f29fef227ed11 /src/audio_core/renderer/system_manager.h
parentffa1fba7d632d69e564cce302b5e5cf4bf131071 (diff)
parentd75bcdd07793954e6c33ba131871c183492b32b0 (diff)
Merge pull request #10221 from Kelebek1/partial_dsp_revert
Add a 5ms tiemout to the DSP processing wait
Diffstat (limited to 'src/audio_core/renderer/system_manager.h')
-rw-r--r--src/audio_core/renderer/system_manager.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/audio_core/renderer/system_manager.h b/src/audio_core/renderer/system_manager.h
index 1f0bbd8b4..9681fd121 100644
--- a/src/audio_core/renderer/system_manager.h
+++ b/src/audio_core/renderer/system_manager.h
@@ -66,13 +66,7 @@ private:
/**
* Main thread responsible for command generation.
*/
- void ThreadFunc();
-
- enum class StreamState {
- Filling,
- Steady,
- Draining,
- };
+ void ThreadFunc(std::stop_token stop_token);
/// Core system
Core::System& core;
@@ -90,8 +84,6 @@ private:
ADSP::ADSP& adsp;
/// AudioRenderer mailbox for communication
ADSP::AudioRenderer_Mailbox* mailbox{};
- /// Atomic for main thread to wait on
- std::atomic<bool> update{};
};
} // namespace AudioCore::AudioRenderer