diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-02-16 16:48:53 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-02-16 16:48:53 +1100 |
| commit | aece1c6b58587aaeda0d1ce082df13e409f930f1 (patch) | |
| tree | 5cf3a7d98fca1192b0bdaa3e6234d8225a5a1b69 /src/codecs | |
| parent | c60bb9ee42eea2c88ef90228274bd28350a87ae4 (diff) | |
| download | tangara-fw-aece1c6b58587aaeda0d1ce082df13e409f930f1.tar.gz | |
Opus seeking impl
Diffstat (limited to 'src/codecs')
| -rw-r--r-- | src/codecs/opus.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/codecs/opus.cpp b/src/codecs/opus.cpp index 2f700510..ec587bc7 100644 --- a/src/codecs/opus.cpp +++ b/src/codecs/opus.cpp @@ -128,6 +128,10 @@ auto XiphOpusDecoder::OpenStream(std::shared_ptr<IStream> input,uint32_t offset) length = l * 2; } + if (offset) { + SeekTo(offset * 48000); + } + return OutputFormat{ .num_channels = 2, .sample_rate_hz = 48000, |
