alexmadeathing / ExtendedAudioImporter

Extended audio format support for Duality 2D Game Development Framework http://duality.adamslair.net
MIT License
1 stars 1 forks source link

Error Importing WAV File: Can't Write Temp File? #2

Open ilexp opened 7 years ago

ilexp commented 7 years ago

Wanted to import some .wav files directly and remembered about this plugin, so I gave it a quick try. Unfortunately, something seems to be wrong - the import fails with the following error log:

[Edit] Error:   An error occurred while trying to import files using 'ExtendedAudioImporter': SoXIOException: Failed to open file for writing: \s2rs.
CallStack:
   at ExtendedAudioImporter.ExtendedAudioImporter.InvokeLoadMethod(String path)
   at ExtendedAudioImporter.ExtendedAudioImporter.Import(IAssetImportEnvironment env)
   at Duality.Editor.AssetManagement.AssetImportOperation.RunImporter(AssetImportEnvironment env, ImportInputAssignment assignment, IList`1 outputCollection) in c:\projects\duality\Source\Editor\DualityEditor\AssetManagement\Import\AssetImportOperation.cs:line 185

I browsed a bit through the source code on this repo to find the source of this and I think the program is running through this re-throw branch with an exception that is probably thrown here. Could there be something wrong with temporary file name generation, or access rights?

I have attached the audio file I was trying to import, in case that makes a difference. SoX is not installed on my machine, but I copied all of its binaries into the Duality folder, so there should be no problem locating them using default native binary search behavior on Windows.

TestAudio.zip

alexmadeathing commented 7 years ago

Interesting. I'll check it out today

alexmadeathing commented 7 years ago

And of course, we have a deadline at work and the overtime is crazy. I haven't forgotten about this and will get on it when I can.

In the meantime, are you able to load other file formats?

ilexp commented 7 years ago

No worries, I know the drill. We're all Open Source people here :)

In the meantime, are you able to load other file formats?

Tried an mp3 just now, same error. Paths like \s2rs do seem a bit weird though - maybe they're just genuinely off?