diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-10-19 21:29:54 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-11-01 01:40:30 +0100 |
| commit | 738ced15ead0f029cf2becf9b77d7adf37e733e3 (patch) | |
| tree | 535e41340b94a21429f6b82c3588d51d5ceec1b8 /src/lib/audio_stream.h | |
| parent | 24cfca51dffed98f0b115ca36f9a8478753e2432 (diff) | |
Obtain audio length by scanning through the file if required (#2880).
Diffstat (limited to 'src/lib/audio_stream.h')
| -rw-r--r-- | src/lib/audio_stream.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/audio_stream.h b/src/lib/audio_stream.h index cf874242f..b125eb8c0 100644 --- a/src/lib/audio_stream.h +++ b/src/lib/audio_stream.h @@ -54,6 +54,11 @@ public: return _length; } + void set_length(Frame length) { + boost::mutex::scoped_lock lm (_mutex); + _length = length; + } + int channels () const; boost::optional<int> bit_depth() const; |
