blob: bdc8f51ea50199a52986c8596e8e146abfb2b656 (
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 CreateCodecForType(StreamType type)
-> cpp::result<std::unique_ptr<ICodec>, CreateCodecError> {
return std::make_unique<MadMp3Decoder>(); // TODO.
}
} // namespace codecs
|