1//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
2//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
3#pragma once
4
5#include "BsOAPrerequisites.h"
6#include "Importer/BsSpecificImporter.h"
7
8namespace bs
9{
10 /** @addtogroup OpenAudio
11 * @{
12 */
13
14 /** Importer using for importing WAV/FLAC/OGGVORBIS audio files. */
15 class OAImporter : public SpecificImporter
16 {
17 public:
18 OAImporter();
19 virtual ~OAImporter() = default;
20
21 /** @copydoc SpecificImporter::isExtensionSupported */
22 bool isExtensionSupported(const String& ext) const override;
23
24 /** @copydoc SpecificImporter::isMagicNumberSupported */
25 bool isMagicNumberSupported(const UINT8* magicNumPtr, UINT32 numBytes) const override;
26
27 /** @copydoc SpecificImporter::import */
28 SPtr<Resource> import(const Path& filePath, SPtr<const ImportOptions> importOptions) override;
29
30 /** @copydoc SpecificImporter::createImportOptions */
31 SPtr<ImportOptions> createImportOptions() const override;
32 };
33
34 /** @} */
35}