- Home /
GetSpectrumData differance between pc and android
i am getting spectrum data with GetSpectrumData and loading to a float array . but this array is different in pc and android . for example on android sample[5] =0.4542334 but on pc sample[5]=0.2323424 . i am trying to make Audio surf like game . But i stucked that thing. spectrum is behaving different in different platform
Thanks
Same problem here and we don't know how to have the same things on the PC and Android
Answer by aldonaletto · Jan 26, 2013 at 04:59 PM
This is probably due to the sampling rate of each device: it's 48KHz in Windows machines, and I read somewhere that it's 24KHz in Android devices. In order to know which's the sampling rate, verify AudioSettings.outputSampleRate - or simply set it to 24000 in both platforms.
@Joskym, there's no need to convert the audio clips - this is just the audio mixer sampling rate. The audio clips are kind of re-sampled internally to match the mixer sampling rate.
Your answer
