summaryrefslogtreecommitdiff
path: root/src/codecs/codec.cpp
blob: 4e9a6a47750a778adfd8a84d15ef8d7f880b5f31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "codec.hpp"

#include <memory>
#include "mad.hpp"

namespace codecs {

auto CreateCodecForFile(const std::string& file)
    -> cpp::result<std::unique_ptr<ICodec>, CreateCodecError> {
  return std::make_unique<MadMp3Decoder>();  // TODO.
}

}  // namespace codecs