Slow down an audio file being played

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
arrogant.gamer
Prole
Posts: 1
Joined: Wed Jun 04, 2014 11:18 pm

Slow down an audio file being played

Post by arrogant.gamer »

I don't really see this in the love audio API, and admittedly I don't understand programatic audio. Is there an easy way to slooooow down and speed up background music in game? Or should I just go start learning about bits and channels and samples?

Thanks!
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Slow down an audio file being played

Post by T-Bone »

https://www.love2d.org/wiki/Source:setPitch can make sound play slower, and it will also make the tones "darker". This may or may not be what you want. If you don't want it that way I don't think there's an easy way to do that.
User avatar
murks
Party member
Posts: 185
Joined: Tue Jun 03, 2014 4:18 pm

Re: Slow down an audio file being played

Post by murks »

It does? Have to try it. There are ways to do pitch change while keeping the speed and vice versa.

arrogant.gamer, depending on what you want you could maybe pre-process your audio files or do on-the-fly synthesis. Bt either way, it's a pitty that löve isn't more powerful wrt. audio.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 3 guests