summaryrefslogtreecommitdiff
path: root/src/audio/audio_element_handle.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-01-24 16:39:52 +1100
committerjacqueline <me@jacqueline.id.au>2023-01-24 16:39:52 +1100
commite5fb1759b16d2c99487acc4fb0a2711afa3aa1dc (patch)
treef138ac2fe47cc8a8fb3557e98a9e29cc09361a05 /src/audio/audio_element_handle.cpp
parent0560fa7f10e0cbeae07b861bb03419377219aac0 (diff)
downloadtangara-fw-e5fb1759b16d2c99487acc4fb0a2711afa3aa1dc.tar.gz
Add a bunch of logging from playback stream investigatons
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));