Lerping to a new volume level

Does the API provide a built-in, fire & forget way to lerp to a new volume level, or should I do this manually in my update function? I see ChannelGroup::setVolume and ChannelGroup::setVolumeRamp, but neither seem applicable.

Are you looking for a configurable time frame to lerp over? If so your best best would be the addFadePoint API. You’ll have to write a bit of wrapper code , mainly to get the clock value and set your new point into the future (so add the ramp time to the current clock value).

Yes, I think that’s exactly what I want to do. Thanks! If you elevate it to an answer we can close it out. (But this isn’t StackOverflow and no reputation seems on the line, so I just did that.)

1 Like

I gave you an upvote!

Per Brett:

Are you looking for a configurable time frame to lerp over? If so your
best best would be the addFadePoint API. You’ll have to write a bit of
wrapper code , mainly to get the clock value and set your new point
into the future (so add the ramp time to the current clock value).

1 Like