Set pitch of all sounds?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
dizzykiwi3
Citizen
Posts: 58
Joined: Tue Jan 14, 2014 2:03 am

Set pitch of all sounds?

Post by dizzykiwi3 »

So my game involves speed ramping as a common feature, and I was wondering if there was a way to adjust the pitch of all sounds similar to love.audio.setVolume(.5) and then revert it back?

The only other way I can think to do it is that when the speed is slowed, any sound that is played needs to be shifted down and put in a table and then when the speed returns to normal the table is iterated and the sounds put to normal pitch
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Set pitch of all sounds?

Post by T-Bone »

Yeah, looping through all relevant Sources sounds like the easiest solutions. Are there any problems with that approach?
Post Reply

Who is online

Users browsing this forum: pgimeno and 3 guests