• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

overlapping audio android studio

Luca Gatto

Lurker
Jan 25, 2021
2
0
hi everyone,i've start programming with android studio 2 days ago and i wanted to create a sort of a soundboard...i've only 2 bytton with 1 audio each other (so 2 audio) and i wanted to know how can i make stop the audio i'm playing if i press the other button with the other sound or restart if i repress the same button.
I saw most of the people use soundpool but i didn't, i just wrote in java.
Sorry if this is a simple question, i'm new and i can't find the answer anywhere,thanks for helping me guys.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones