Smooth out the DSP callback by adding a 5ms wait time limit

This commit is contained in:
Kelebek1
2023-05-10 17:59:21 +01:00
parent f35c14fb73
commit d75bcdd077
4 changed files with 12 additions and 16 deletions

View File

@@ -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