AudioCodecs.h 396 B

12345678910111213141516
  1. #pragma once
  2. #include <memory>
  3. #include "BaseCodec.h"
  4. #include "AudioContainer.h"
  5. namespace bell {
  6. class AudioCodecs {
  7. public:
  8. static std::shared_ptr<BaseCodec> getCodec(AudioCodec type);
  9. static std::shared_ptr<BaseCodec> getCodec(AudioContainer* container);
  10. static void addCodec(AudioCodec type,
  11. const std::shared_ptr<BaseCodec>& codec);
  12. };
  13. } // namespace bell