I have searched and read several SoundPool questions and how to construct it in Android Studio in Kotlin language for atleast an hour but I do not understand and I can't get it to work. The videos usually just writes code and does not explain what each part do what so it is hard to rewrite the code for my app.
Can someone please explain it step by step for me or atleast point me to a website or video that can? I need to understand all the steps since I am new to this.
This is what I want to do: I want to play a short wav file when the user reach the win activity. I also want to play a short wav file when the user answers correct on the questions leading to the win activity.
So the "correct answer" sound will play in my playerCard function and the "You won" sound will play when the win activity starts. I have created a raw resource file in my res and copied the wav files there. If you want to see the code this is my github : https://github.com/Noccis/TonisApp.git
I am thankful for any help. /Toni