Sound issues when built to device

Hi All

I am running into an odd issue with sound files.

I have recently downloaded 4 sound effects from the same website. They all have the same format, frequency, etc.

I have them set up and working the way i want in the editor and using the remote.

However when I build to my development device, two of them do not work correctly and two do. If you listen carefully you can hear the device making some kind of noise, but it is definitely not the correct sound.

Are there any settings or issues that I am not aware of with simple sound effects?

I dont mind posting a link to the sound files that dont work if someone thinks that would be helpful

Thanks!

L

Unless they’re mp3 or ogg, I’m not aware of an issue.

Mp3/aac - can only play one at a time on the device.

ogg - won’t work.

I typically use Wavs at the lowest possible khz I can get away with :slight_smile: (For some sounds that’s as low as 18khz, for others I won’t go under 32khz)

these are all WAV files :?

ogg wont work? My background track is an OGG file and plays fine on the device…

It doesn’t actually…there is no Ogg on iDevices, it’s either MP3 or AAC (M4A). You can find how this all works explained in the audio docs.

–Eric

you are right. The file is ogg but the import settings change it to mp3.

I have turned my volume all the way up on the ipod and muted the music. I can hear the two sounds play, but they are extremely muffled compared to the other two sounds; yet they all sound and play fine in the editor.

How do you guys play your sound effects? I am using the class function ‘AudioSource.PlayClipAtPoint()’ and playing the sound effects at the camera’s location.

L

Just audio.Play() usually. Are the non-working sounds really short? The only audio problem I’ve experienced on the device is when I had a very short sound effect. I had to pad it out with about .1 seconds of silence to get it to play correctly.

–Eric

They are half a second in length.

Now that I check it the two that have issues are pretty short. I guess that may explain it.

I found alternatives; not really worth going through and adding time to the tracks.

L