summaryrefslogtreecommitdiff
path: root/src/audio/audio_element_handle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio/audio_element_handle.cpp')
-rw-r--r--src/audio/audio_element_handle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/audio_element_handle.cpp b/src/audio/audio_element_handle.cpp
index 1250bbcf..c5f0c374 100644
--- a/src/audio/audio_element_handle.cpp
+++ b/src/audio/audio_element_handle.cpp
@@ -39,15 +39,15 @@ auto AudioElementHandle::Quit() -> void {
auto AudioElementHandle::PauseSync() -> void {
PlayPause(PAUSE);
- MonitorUtilState(eSuspended);
+ MonitorUntilState(eSuspended);
}
auto AudioElementHandle::QuitSync() -> void {
Quit();
- MonitorUtilState(eDeleted);
+ MonitorUntilState(eDeleted);
}
-auto AudioElementHandle::MonitorUtilState(eTaskState desired) -> void {
+auto AudioElementHandle::MonitorUntilState(eTaskState desired) -> void {
while (eTaskGetState(*task_) != desired) {
WakeUpTask();
vTaskDelay(pdMS_TO_TICKS(1));