Audio issues

Hi,

I’m on a project we’re we are communicating to a external device using chirps which use fairly high frequencies. We found that when importing these files into Unity it was reducing the wave (and thus loosing the frequency) so we’re using native code to play the chirps … but … for some reason this doesn’t work when working in parallel with Unity i.e. works fine as an isolated app but when running Unity it wont work.

Does anyone how Unity setups audio which may be affecting the sample rate?

Thanks,
Josh

SOLVED; Unity reduces the sample rate from 44100 to 24000 - so just updated the preferred sample rate for the current audio session.

Unity compresses your audio files to ogg format by default. You can switch this to uncompressed format in the audio file’s import settings in the inspector. This will allow you to use uncompressed 44.1khz wav sounds which may help depending on how high your frequencies need to be.