diff options
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; } |
