diff options
| author | jacqueline <me@jacqueline.id.au> | 2022-12-07 15:36:47 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2022-12-07 15:36:47 +1100 |
| commit | 01be69eca1fa89c047fc29f5cb0ea8ba0898dad1 (patch) | |
| tree | d40f749b3ebf6327f13d51d585f7c315a6d864c3 /src/codecs | |
| parent | f35bb64c2b8dbb72fd15f1880e4d01d263660910 (diff) | |
| download | tangara-fw-01be69eca1fa89c047fc29f5cb0ea8ba0898dad1.tar.gz | |
better handling of chunk buffer
Diffstat (limited to 'src/codecs')
| -rw-r--r-- | src/codecs/codec.cpp | 2 | ||||
| -rw-r--r-- | src/codecs/include/codec.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/codecs/codec.cpp b/src/codecs/codec.cpp index 2a66b5f1..4e9a6a47 100644 --- a/src/codecs/codec.cpp +++ b/src/codecs/codec.cpp @@ -5,7 +5,7 @@ namespace codecs { -auto CreateCodecForExtension(std::string extension) +auto CreateCodecForFile(const std::string& file) -> cpp::result<std::unique_ptr<ICodec>, CreateCodecError> { return std::make_unique<MadMp3Decoder>(); // TODO. } diff --git a/src/codecs/include/codec.hpp b/src/codecs/include/codec.hpp index bbb621f5..6897acf2 100644 --- a/src/codecs/include/codec.hpp +++ b/src/codecs/include/codec.hpp @@ -63,7 +63,7 @@ class ICodec { enum CreateCodecError { UNKNOWN_EXTENSION }; -auto CreateCodecForFile(const std::string& extension) +auto CreateCodecForFile(const std::string& file) -> cpp::result<std::unique_ptr<ICodec>, CreateCodecError>; } // namespace codecs |
