diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-01-24 16:39:52 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-01-24 16:39:52 +1100 |
| commit | e5fb1759b16d2c99487acc4fb0a2711afa3aa1dc (patch) | |
| tree | f138ac2fe47cc8a8fb3557e98a9e29cc09361a05 /src/audio/include/audio_element.hpp | |
| parent | 0560fa7f10e0cbeae07b861bb03419377219aac0 (diff) | |
| download | tangara-fw-e5fb1759b16d2c99487acc4fb0a2711afa3aa1dc.tar.gz | |
Add a bunch of logging from playback stream investigatons
Diffstat (limited to 'src/audio/include/audio_element.hpp')
| -rw-r--r-- | src/audio/include/audio_element.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/audio/include/audio_element.hpp b/src/audio/include/audio_element.hpp index ec6d6e80..eb700180 100644 --- a/src/audio/include/audio_element.hpp +++ b/src/audio/include/audio_element.hpp @@ -32,6 +32,8 @@ enum AudioProcessingError { UNSUPPORTED_STREAM, // Indicates an error with reading or writing stream data. IO_ERROR, + // Indicates that the element has run out of data to process. + OUT_OF_DATA, }; /* @@ -65,7 +67,7 @@ class IAudioElement { * to ProcessIdle(). If this is portMAX_DELAY (the default), then ProcessIdle * will never be called. */ - virtual auto IdleTimeout() const -> TickType_t { return portMAX_DELAY; } + virtual auto IdleTimeout() const -> TickType_t { return 10; } virtual auto InputMinChunkSize() const -> std::size_t { return 0; } |
