Slow Down sound

Hello guys,

I need to know how to slow down sound in gameplay. For example, in my game, if I reduce the time scale to 0.5, then I want the audio clips to play at 50% of their speed,ie. a 5 second audio clip plays slowly and takes 10 seconds to get over. I looked up the manual and couldn’t find an answer.

Thanks a ton for reading!

Vatsal

AudioSource.pitch = 0.5 will reduce the speed so that it takes twice as long for the audio to play.

Changing the SPEED (sample rate) automatically changes the pitch. That is important to know - Screenhog meant to say this, even though unity seems to work the other way. It’s just hiding the physics behind the word ‘pitch’

It might also be helpful to know that you have halved the sample rate of your audio file by doing this, naturally losing 50% of the definition of your PCM sound, and halving the maximum frequency you can hear.

If you would like I can alter the speed of your sound without altering the sample rate and pitch, If this is something you would like. But then again - half the ‘fun’ impact of slowing down sound is when it does work on the primitive method of slowing a sample rate, giving you that lowering in pitch.

Again, this ‘slowing down’ can still be achieved in professional audio editing software without halving the sample rate, which will prevent the loss of high frequency content whilst still maintaining a lowering of pitch which we find aesthetically pleasing.