- Home /
Lower rate audio read to 384kHz sample rate?
Hi there! Does anyone know how we can 'make' Unity go above its 192khz inspector drop-down selection limit in the audio files when wishing to play at a higher rate (not playing a 384 kHz sound file - Originally/source; but, rather playing any sound files 192kHz or lower - To - the 384 kHz sound rate). When you click in Inspector on an audio file, there is a range of 8,000Hz to 192,000Hz that you can play the sound file; I was told (by mgear) that you can change the sample rate to 1000 (in meta file of audio file) and it does work:
https://unitycoder.com/blog/2020/02/13/use-audioimporter-sample-rate-lower-than-8000hz/
But, it does not work when I put ''sampleRateOverride: 384000'' in the meta file of the audio file; in Unity, it still shows 192,000; it does not show 384,000. Thus, there seems a minimum/maximum limit/range that Unity is willing to change by the meta file; minimum = 0kHz - maximum = 192kHz. You can't go below 0 (in minus), or, above 192 (like wishing 384 or 768). Unity unallows it because the range only covers 0-192, so there is no number for it. It seems coded that way/I mean in the source code; what is there file that controls this 0-192kHz 'override sample rate' range of the audio inspector, it would be to put 0-384 or 0-768 min max range??
Thank you very much.
PS: I am trying to 'uprate' low sample rate sounds; for example, playing a 44kHz sound - At - 384kHz. The only way to do that is using 'override sample rate' (in inspector); I know the 'just use a sound 'made at the 384kHz' original sample rate inside the sound clip itsef...I am not trying to do that; I am trying to 'upres/uprate/play' Already Low sample rate sounds - To - 384-768kHz Higher sample rate in Unity but these samples rates are not available as selections in the override sample rate menu list.