diff options
| author | ailurux <ailuruxx@gmail.com> | 2023-07-08 12:58:07 +1000 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2023-07-08 12:58:07 +1000 |
| commit | 3de310f6e4c170c4c4bfb789cb07ca10e5ab17b8 (patch) | |
| tree | 0d13d6efa758b8c029a35c73405529dcadde3788 /src/audio/stream_info.cpp | |
| parent | daa3013836d619d920db3a9dc1f9cc988047a4b4 (diff) | |
| parent | 8f8bc1f088b389a683735d626cbce9adb1f6dc17 (diff) | |
| download | tangara-fw-3de310f6e4c170c4c4bfb789cb07ca10e5ab17b8.tar.gz | |
Merge branch 'main' of git.sr.ht:~jacqueline/tangara-fw
Diffstat (limited to 'src/audio/stream_info.cpp')
| -rw-r--r-- | src/audio/stream_info.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio/stream_info.cpp b/src/audio/stream_info.cpp index 748cb9ef..3927e5f8 100644 --- a/src/audio/stream_info.cpp +++ b/src/audio/stream_info.cpp @@ -64,6 +64,10 @@ bool OutputStream::prepare(const StreamInfo::Format& new_format) { return false; } +void OutputStream::set_duration(std::size_t seconds) { + raw_->info->duration_seconds = seconds; +} + const StreamInfo& OutputStream::info() const { return *raw_->info; } |
