|
|
@@ -1,6 +1,6 @@
|
|
|
|
|
|
#include <Atomic/Resource/ResourceCache.h>
|
|
|
-#include <Atomic/Resource/Image.h>
|
|
|
+#include <Atomic/Audio/Sound.h>
|
|
|
|
|
|
#include "Asset.h"
|
|
|
#include "AssetDatabase.h"
|
|
|
@@ -50,4 +50,12 @@ bool AudioImporter::SaveSettingsInternal()
|
|
|
}
|
|
|
|
|
|
|
|
|
+Resource* AudioImporter::GetResource()
|
|
|
+{
|
|
|
+ ResourceCache* cache = GetSubsystem<ResourceCache>();
|
|
|
+ Sound* sound = cache->GetResource<Sound>(asset_->GetPath());
|
|
|
+ return sound;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
}
|