diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-07-07 15:29:47 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-07-07 15:29:47 +1000 |
| commit | 39f7545cd5ef7a30bbd482f3579df7744c6b688d (patch) | |
| tree | a760a50cc17365fbcd69eb89ca627ad7feb8c0b6 /src/audio/stream_info.cpp | |
| parent | 2f16d230025c3173cfbecc58b38d6a52b6b0f5f2 (diff) | |
| download | tangara-fw-39f7545cd5ef7a30bbd482f3579df7744c6b688d.tar.gz | |
wire up the playing screen with some real data
Includes implementing song duration calculation for CBR MP3 files
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; } |
