gtreshchev / RuntimeAudioImporter

Runtime Audio Importer plugin for Unreal Engine. Importing audio of various formats at runtime.
MIT License
308 stars 67 forks source link

Cannot use imported sound with Metasounds #30

Closed krojew closed 5 months ago

krojew commented 1 year ago

Hi, After importing sound files and trying to set wave parameter for a Metasound, I get an error: "Failed to set invalid parameter '%s' in asset '%s': Either does not exist or is unsupported type". This is probably due to UMetaSoundSource::IsParameterValid() returning false for given input object. Everything works for "traditional" sound wave objects.

krojew commented 1 year ago

Looks like UImportedSoundWave is missing REGISTER_METASOUND_DATATYPE.

gtreshchev commented 1 year ago

Hi. MetaSounds doesn't support procedural sound waves, which are used as the basis for the plugin's imported sound wave. I plan to implement this support at some point.

Please follow the news regarding this plugin in our telegram chat: https://t.me/georgydev

krojew commented 1 year ago

Would you happen to know of a workaround?

gtreshchev commented 1 year ago

There is no workaround for now, there is a plan to make a support for it soon

gtreshchev commented 1 year ago

Will presumably be supported starting from 5.2 (depending on whether Epics approves my PRs): https://github.com/gtreshchev/RuntimeAudioImporter/wiki/How-to-use-with-MetaSounds

gtreshchev commented 1 year ago

I contacted one of the audio team at Epic Games and he told me that they have plans in version 5.3.0 for these PRs, so it's being postponed for now

gtreshchev commented 8 months ago

This should already be supported since the engine 5.3.0 is out here, but in order to support the MetaSounds, you should switch to the metasounds branch in this repo (https://github.com/gtreshchev/RuntimeAudioImporter/tree/metasounds) and download the plugin from there. I'll probably create a separate Marketplace-specific version of the plugin with MetaSounds support enabled by default at some point.

gtreshchev commented 5 months ago

The plugin should now support the MetaSound.

To access the support for this feature by default, use the following branch: https://github.com/gtreshchev/RuntimeAudioImporter/tree/metasounds

Alternatively, feel free to download the plugin directly from the Marketplace: https://www.unrealengine.com/marketplace/product/runtime-audio-importer-metasound