Audio quality issue on mobile platforms

Hi there,

We are using Unity for our current project. During tests on Android and iOS we found that audio files played via game sounds different than the same file played from system audio player. It’s like high tones are filtered(e.g in game we almost can’t hear cymbals). To be clear, we use uncompressed WAV files, with appriopriate settings in Unity. If we build it for PC audio is OK (same output from game and system player). Is there any mandatory compression or filter that Unity uses for mobile releases? Have anyone experienced similar problem?

Thanks in advance

1 Like

Best to not use uncompressed WAV files for anything nowdays, it takes so much space, and only 44.1k 16 bit wavs sound good, 22k wav sounds more like telephone or microphone… iOS converts all sound into it’s native platform afaik.

When building for IOS, it does not matter what your type of file your sound is as long as Unity can play it. b/c IOS will convert that sound into its own format. So if you have an MP3 or a Wav it will still convert it to its own.

If it’s a mobile platform, using ogg is better than mp3 and optionally 10x times smaller than 441k wav files

1 Like

@rafalczuj

Try logging AudioSettings.outputSampleRate on the device.
If it spits out 24000, you have your culprit: sample rate defaults at that rate on iOS, and you have to explicitly set it to a higher value ( 44100 ) in your first scene.

I’ve tested this up to Unity 4.3, maybe it changed lately, but it’s worth a shot.
Also, afaik setting AudioSettings.outputSampleRate kills the audio so you have to do it in a separate init scene before you load your real first scene.

Cheers,

Gregzo

3 Likes