I’m getting these strange errors while importing the audio clips for this lecture.
The audio icons look weird and they do not look like Rick’s icons in the video. I’ve never had this problem before with other courses or audio clips. This is a first for me.
At first, I did not have VLC installed (due to a recent OS reload) and the clips would not play at all. I installed VLC and the clips will play when I click on them, but I cannot assign a clip to the ball Audio Source as the clips are not detected by Unity. The audio clip icon did not change after installing VLC.
I have tried:
- Double-checking the audio format is ogg vorbis
- Deleting the audio clips and re-importing them
- Deleting the downloads and re-downloading / reimporting
- Closing and restarting Unity
I also tried deleting the audio files from Unity and my computer, rebooting my computer, and re-downloading and re-importing them, but that didn’t help either.
I’m also seeing this message that says the selection contains different compression formats to the default settings for the current build platform so I’m trying to figure out where to make some changes that I can test, but I don’t know exactly where to look at the moment.
/* Another thing about this Different Compression formats notion is that the Original size is reading 0 and the imported size is also reading 0. I think this might be a key to my issue, but way below at the bottom of this post you’ll see that I went into the Project Settings → Player Settings → Publishing Settings and tried all of the different options. */
When I click on one of the error messages, I see this text, so I’m also trying to make sense of it. This message is suggesting that Unity may have changed and these files are too short in length and may need to be longer, so I think it might be best to try creating a few slightly longer sound effect files to test them.
I recorded a new audio clip using Audacity and exported it as an ogg file. The clip is about 3 seconds long and I got the exact same result so I’m sure there is nothing wrong with the audio files.
Installed Ffmpeg and still no luck.
Another thing I tried was changing the settings under Project Settings → Player → Publishing Settings
I had previously changed this to ‘Disabled’ because I made a build last night and the game will not upload to itch.io if I use the Brotli or GZip settings. So I tried all three of these options and no luck.
There has to be something much more fundamental going on here. This task shouldn’t be this complicated and there has got to be something I’m missing, or something that may not have been installed properly.