Play small duration sound with MediaPlayer or SoundPool on button click
I have an android application written in Kotlin & jetpack compose. The application is running on a device with physical keyboard.
My goal is to play a sound every time I click a button.
Ideally, I want to play a sound of small duration so when I am making fast typing I want to play one sound for each button click. Sounds of large duration, work but sometimes they are not as frequent as the frequency of typing.