How to realize real-time audio adjustment?

Thank you so much. Instead of buttons, I used the slider. Everything worked.