gtreshchev / RuntimeAudioImporter

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

Conflict with global namespace #18

Closed imtrobin closed 2 years ago

imtrobin commented 2 years ago

When I'm a C++ (UE427) project, I do not have the plugin activated but downloaded in marketplace, it will have compile error

error CS0101: The namespace '' already contains a definition for 'RuntimeAudioImporter'

I have to delete it from marketplace plugin folder to be able to compile

gtreshchev commented 2 years ago

You should only have 1 plugin instance for both engine and project. Make sure you don't have duplicate RuntimeAudioImporter module in your engine or project folders, and then regenerate the project files.

imtrobin commented 2 years ago

there is only 1. I didn't put in my project, only downloaded in marketplace.

imtrobin commented 2 years ago

image

I can't even generate sln with the plugin in the marketplace. I have to delete it.

imtrobin commented 2 years ago

image

gtreshchev commented 2 years ago

Are you sure you don't have the RuntimeAudioImporter plugin in the Plugins folder of your project?

imtrobin commented 2 years ago

image

gtreshchev commented 2 years ago

Maybe you installed the AudioAnalysisTools plugin through the Marketplace? If you installed it, then you don't need to install RuntimeAudioImporter on top, as it is already embedded in the plugin.

gtreshchev commented 2 years ago

If not, then I'm not sure what the problem is. Try opening the project through your IDE (eg Visual Studio) and look for RuntimeAudioImporter namespaces

imtrobin commented 2 years ago

yes, I have AudioAnalysisTool

gtreshchev commented 2 years ago

Then you don't need to install RuntimeAudioImporter separately, leave only AudioAnalysisTools. I will write this information to the description in the AudioAnalysisTools plugin in the Marketplace so that there are no misunderstandings.

wolfsprite commented 2 years ago

Then you don't need to install RuntimeAudioImporter separately, leave only AudioAnalysisTools. I will write this information to the description in the AudioAnalysisTools plugin in the Marketplace so that there are no misunderstandings.

If you could please write this on the RuntimeAudioImporter page too, that would be appreciated!

I was having the same issue and found your answer to someone else on the Marketplace page there, but my project didn't have any plugin folders at all so I knew that that was not the cause. Was not until I found this issue and your comment that I'm replying to that I was able to get this resolved by removing RuntimeAudioImporter.

The description of Audio Analysis Tools "works in conjunction with Runtime Audio Importer" led me to believe that they worked together well, not that Audio Analysis Tools includes RuntimeAudioImporter also.

gtreshchev commented 2 years ago

Agree. I wrote about this information in the Marketplace and in the documentation.

wolfsprite commented 2 years ago

Nice, thank you!