diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-02-15 16:12:07 +1100 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-02-15 16:12:07 +1100 |
| commit | 62f6179abe24339c2e5b7350528afbcad4c52067 (patch) | |
| tree | d14f0b35ef601d0877ced507c5560236da666218 /src/codecs/include | |
| parent | e466522c25758670da335195d60a5d599ed56177 (diff) | |
| download | tangara-fw-62f6179abe24339c2e5b7350528afbcad4c52067.tar.gz | |
Added offset for track seeking, wav impl. only rn
Diffstat (limited to 'src/codecs/include')
| -rw-r--r-- | src/codecs/include/codec.hpp | 2 | ||||
| -rw-r--r-- | src/codecs/include/mad.hpp | 2 | ||||
| -rw-r--r-- | src/codecs/include/miniflac.hpp | 2 | ||||
| -rw-r--r-- | src/codecs/include/opus.hpp | 2 | ||||
| -rw-r--r-- | src/codecs/include/vorbis.hpp | 2 | ||||
| -rw-r--r-- | src/codecs/include/wav.hpp | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/codecs/include/codec.hpp b/src/codecs/include/codec.hpp index 8aa391b6..fb1ec771 100644 --- a/src/codecs/include/codec.hpp +++ b/src/codecs/include/codec.hpp @@ -117,7 +117,7 @@ class ICodec { * Decodes metadata or headers from the given input stream, and returns the * format for the samples that will be decoded from it. */ - virtual auto OpenStream(std::shared_ptr<IStream> input) + virtual auto OpenStream(std::shared_ptr<IStream> input,uint32_t offset) -> cpp::result<OutputFormat, Error> = 0; struct OutputInfo { diff --git a/src/codecs/include/mad.hpp b/src/codecs/include/mad.hpp index 813aa86d..35e3284d 100644 --- a/src/codecs/include/mad.hpp +++ b/src/codecs/include/mad.hpp @@ -26,7 +26,7 @@ class MadMp3Decoder : public ICodec { MadMp3Decoder(); ~MadMp3Decoder(); - auto OpenStream(std::shared_ptr<IStream> input) + auto OpenStream(std::shared_ptr<IStream> input,uint32_t offset) -> cpp::result<OutputFormat, Error> override; auto DecodeTo(cpp::span<sample::Sample> destination) diff --git a/src/codecs/include/miniflac.hpp b/src/codecs/include/miniflac.hpp index d57b08a3..d1daca2f 100644 --- a/src/codecs/include/miniflac.hpp +++ b/src/codecs/include/miniflac.hpp @@ -28,7 +28,7 @@ class MiniFlacDecoder : public ICodec { MiniFlacDecoder(); ~MiniFlacDecoder(); - auto OpenStream(std::shared_ptr<IStream> input) + auto OpenStream(std::shared_ptr<IStream> input,uint32_t offset) -> cpp::result<OutputFormat, Error> override; auto DecodeTo(cpp::span<sample::Sample> destination) diff --git a/src/codecs/include/opus.hpp b/src/codecs/include/opus.hpp index 45b1b07a..1431fa54 100644 --- a/src/codecs/include/opus.hpp +++ b/src/codecs/include/opus.hpp @@ -26,7 +26,7 @@ class XiphOpusDecoder : public ICodec { XiphOpusDecoder(); ~XiphOpusDecoder(); - auto OpenStream(std::shared_ptr<IStream> input) + auto OpenStream(std::shared_ptr<IStream> input,uint32_t offset) -> cpp::result<OutputFormat, Error> override; auto DecodeTo(cpp::span<sample::Sample> destination) diff --git a/src/codecs/include/vorbis.hpp b/src/codecs/include/vorbis.hpp index 2f93c37e..b32ef8d5 100644 --- a/src/codecs/include/vorbis.hpp +++ b/src/codecs/include/vorbis.hpp @@ -28,7 +28,7 @@ class TremorVorbisDecoder : public ICodec { TremorVorbisDecoder(); ~TremorVorbisDecoder(); - auto OpenStream(std::shared_ptr<IStream> input) + auto OpenStream(std::shared_ptr<IStream> input,uint32_t offset) -> cpp::result<OutputFormat, Error> override; auto DecodeTo(cpp::span<sample::Sample> destination) diff --git a/src/codecs/include/wav.hpp b/src/codecs/include/wav.hpp index 896976dd..e884a9bb 100644 --- a/src/codecs/include/wav.hpp +++ b/src/codecs/include/wav.hpp @@ -31,7 +31,7 @@ class WavDecoder : public ICodec { WavDecoder(); ~WavDecoder(); - auto OpenStream(std::shared_ptr<IStream> input) + auto OpenStream(std::shared_ptr<IStream> input,uint32_t offset) -> cpp::result<OutputFormat, Error> override; auto DecodeTo(cpp::span<sample::Sample> destination) |
