Learn Android Studio: (12) How to play sounds using SoundPool

preview_player
Показать описание
In this video we'll be looking at how you can add sound onto your Android app using the SoundPool class. If you're unsure whether or not to use SoundPool or Mediaplayer to play your sounds feel free to check out this video which discusses which method would be best suited for your app.
Рекомендации по теме
Комментарии
Автор

Thank you very much! Learned Android studio for 2 days, trying to create a game for school, really helped! :)

zougary
Автор

Thanks my bro, i need to loop this sound, how that, please answer me because i am beginner

eqaati
Автор

Can we make to autoplay sounds when switching viewpager? Thanks!

RinorBislimi
Автор

Increvible video.
John, how can I save this sound about the play with SoundPool???

ThomasKanzig
Автор

Thank you for your great videos.
How would you use sound poll to play random sounds.

MrJong
Автор

Great video thank you.
How would I play two sounds together at the same time, do I need a media player for each file.

MrJong
Автор

thanks man! my first button i made it! i give you mad propz from US

MoshNbreakz
Автор

Great video, how would you go about making a similar app with more buttons with different sounds on each button?

LWV
Автор

How would you adjust the volume of the sound being played to the current volume level set by the user

rajarshibanerjee
Автор

Thanks for the tutorial! This was very helpful.
Subscribed

EliseyRodriguez
Автор

any idea on how to open a random sound?

romeopetrucciarpegio
Автор

Thank you so much! i want to use music file (1min) but the app stop when i click fire button and i have error when click run in androoid-std (E/SoundPool: Unable to load sample: (null)

youcefbenammou
Автор

should the SoundPool be loaded in another thread or class?

rayrivera
Автор

THank Yu Dude.. But, What shld i do to play the full length audio file

Thangabalajis
Автор

Thanks a lot, This was heplful but how can I run sound work when the app start

hawajh
Автор

thanks very much for this knowledge... helped me a lot :)

cristianbabarusi
Автор

Hi, I hope you can help me: when I play a short sound, it works perfectly but when I play a longer one, it gives me an error error saying the sound was not loaded

AlexLesTests