Does not contain a supported 'wav' format

Got a sound issue that not seen before:

The file ‘Assets/Sounds/Player/Army jacket movement3.wav’ does not contain a supported ‘wav’ format (Unsupported file or audio format. )

Yet when I double click the .wav file it plays nicely.

Anyone have this issue before?

Does the file work correctly if you open the .wav file in e.g. Audacity and save it there?

Yes file seems to play correctly when double clicked within Unity3d.
So this is strange one, some kind of import issue.
So you suggest I open the files in another program and reinport to unity3d.

The Ogg format displays no issues.
The project has a mixture of ogg and wav files.

Sounds like it might not actually be a wav file; just because it has “.wav” at the end doesn’t mean it’s necessarily true. Try re-saving it.

–Eric

After some research I think the problem is because the file has a duration of 1 second or less. Very small sound effect. (Editor cannot even open it)
So Unity therefore is not recognizing it as valid, Im using mac and the file duration is 00:01
The original code is not my own so maybe it was designed on PC.

Should Unity support even 00:01

I have a project with a wav file that’s 0.01 seconds and it’s fine. (On a Mac, not that it should make any difference.)

–Eric

I have nothing to say about your wav file, but i had sfxr open in other tab, and thought you might find it helpful:
http://www.superflashbros.net/as3sfxr/

great tool for small soundfx, and works online …and exports wav files.

Interesting, this may not be a Unity3d issue then after all.
I tried to attach a sample file to upload to you all and it saw it as a invalid file.
Yet the .wav plays fine on the mac.

SOLUTION: So I right clicked on all the files and converted to .m4a which the mac did.
Then opened all the files in iTunes, within iTunes I changed some preferences and right click on sound then create .wav file
The files then imported correctly into Unity3d without any issues at all.

Thanks everyone for replying and helping.
This indeed was a strange one.

Regards
Max

1 Like