AudioCodecs.h 508 B

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