Answered
1
0

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.

  • Brett Paterson

    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).

  • Matthias Worch

    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.)

  • Brett Paterson

    I gave you an upvote!

  • You must to post comments
Best Answer
1
0

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).

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.