iPhone build error with Ogg vorbis

Hello!

I’m having problems with ogg files when building my proyect to iPhone, using Unity 1.5.

I use Ogg vorbis for music files, and I would swear I have been using it for a month or so without any problems (probably before switching to 1.5). On my latest build, I got this error on each Ogg file:

Obb vorbis compressed audio is not supported when publishing to the iPhone. Please switch to uncompressed or Apple native compressed audio in the import settings.

However, if I select my music files and open the import settings menu, all is unselectable but “decompress on load”, which makes no difference.

Any idea about what could be happening? Thank you!

Ogg is not supported on Unity iPhone. You’ll need to convert it to AAC or Mp3.

It works fine in the editor, but it won’t compile.

Are you absolutely positive about that? I remember I had to convert two weeks ago all my MP3s to Ogg because the MP3 encoder adds (or cuts) some extra milliseconds, which is awful for my looping music.

After the conversion, I am almost sure I tried the project on the iPhone once or twice, even though it sounds funny even to myself :frowning:

I don’t know about JT, but I am. :wink:

Clean looping music doesn’t work predictably in Unity. Not with ogg, not with uncompressed, nada. :frowning:

Looping music with uncompressed sound files should work fine on iPhone.
Ogg files will work in the Editor but won’t work when deployed to iPhone. You need to compress audio files to Apple native format (AAC should work best) using iTunes.

Awesome. I just tested this and it seems to be true. I guess I haven’t been keeping up with the fixes well enough. So I happily stand corrected.

I wish that it were the case with compressed music, though, considering that’s what’s really useful on the iPhone.