BsOAImporter.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsOAPrerequisites.h"
  5. #include "Importer/BsSpecificImporter.h"
  6. namespace bs
  7. {
  8. /** @addtogroup OpenAudio
  9. * @{
  10. */
  11. /** Importer using for importing WAV/FLAC/OGGVORBIS audio files. */
  12. class OAImporter : public SpecificImporter
  13. {
  14. public:
  15. OAImporter();
  16. virtual ~OAImporter();
  17. /** @copydoc SpecificImporter::isExtensionSupported */
  18. bool isExtensionSupported(const WString& ext) const override;
  19. /** @copydoc SpecificImporter::isMagicNumberSupported */
  20. bool isMagicNumberSupported(const UINT8* magicNumPtr, UINT32 numBytes) const override;
  21. /** @copydoc SpecificImporter::import */
  22. SPtr<Resource> import(const Path& filePath, SPtr<const ImportOptions> importOptions) override;
  23. /** @copydoc SpecificImporter::createImportOptions */
  24. SPtr<ImportOptions> createImportOptions() const override;
  25. };
  26. /** @} */
  27. }