2024-09-26 10:58 PM
Hello all,
A very good morning, I hope you all have the good day.
I am developing the AVAS project taking the base code(shown in the snippet) from the AutoDevKit.
Here my requirement is I need to increase the sound from speed 0 to 20kmph and sound should decrease from 21 to 30kmph. For this requirement I need to increase and decrease the sound gradually. Initially I was using playsound() API where gain is fixed so I was not able to increase or decrease the sound. Now I am using playsoundwithgain() API, where I am changing the gain with respect to the speed this is affecting the quality of sound and I am getting so much of noise.
So I wanted to know
1. How to increase and decrease the sound linearly which API I need to use?.
2. Which parameter should be varied with respect to speed whether volume or gain or something something else has to be done.
It will be very useful to me if I get suggestions on my issues.
Thanks & Regards,
Aishwarya UM