Sound clips stop working after a few moments

I made a simple soundboard app (an app that ) but after you play like 10 clips the sounds stop working and I have no idea whats going on,

anybody has an idea of what could i do to fix this??

you can try the app here in case you wanna see it:
https://play.google.com/store/apps/details?id=io.kodular.carlosfcabrales.BojackHorseman

1 Like

Instead of show your app you should give better informations.
Like which component do you use to play sounds?

2 Likes

ohh sorry, well I use a player component from the media palette and the i use the following code to initialize

and then the following code to play the sound and stop it in case the user plays a diferent one

You should use for short sounds the sounds component and not the player component.

2 Likes

Mika, disagree. Sound component is buggy (lots of errors thrown, even for sounds < 1 second long), player is much better option.
carlosfcabrales - problem with your app is it uses huge amount of memory. You should use only ONE player instance for all sounds. It looks to me you are using 1 player per 1 sound. If you have 30 sounds, then 30 player components is not a good idea. I’m not sure if phone/tablet with so much RAM exists to support such solution. Please search forum i’ve already explained it to someone.

1 Like

ohh I see, thx for the help !

how do i do this on the blocks? how do i put one player instance for many sounds?

3 Likes