S studio4 Member Licensed User Longtime User Aug 24, 2015 #1 Hello community, I am using Soundpool to play some short sounds. I am using this method: Dim SPLAY As SoundPool Dim SOUNDPLAY As Int SPLAY.Initialize(100) SOUNDPLAY = SPLAY.Load(File.DirAssets,"xxx.ogg") SPLAY.PLAY(SOUNDPLAY, 1,1,1,0,1) It works perfect when the sound is shorter than 5 second, but when I try to play a long sound (1 minute), soundpool stops. I do not want to show any interface, only that the sound play such as background.
Hello community, I am using Soundpool to play some short sounds. I am using this method: Dim SPLAY As SoundPool Dim SOUNDPLAY As Int SPLAY.Initialize(100) SOUNDPLAY = SPLAY.Load(File.DirAssets,"xxx.ogg") SPLAY.PLAY(SOUNDPLAY, 1,1,1,0,1) It works perfect when the sound is shorter than 5 second, but when I try to play a long sound (1 minute), soundpool stops. I do not want to show any interface, only that the sound play such as background.
stevel05 Expert Licensed User Longtime User Aug 24, 2015 #2 Soundpool, is only really intended for playing short clips Have a look at Audiostreamer https://www.b4x.com/android/forum/threads/audio-library-v1-5-new-audiostreamer-object.30550/ Upvote 0
Soundpool, is only really intended for playing short clips Have a look at Audiostreamer https://www.b4x.com/android/forum/threads/audio-library-v1-5-new-audiostreamer-object.30550/
S studio4 Member Licensed User Longtime User Aug 24, 2015 #3 stevel05 said: Soundpool, is only really intended for playing short clips Have a look at Audiostreamer https://www.b4x.com/android/forum/threads/audio-library-v1-5-new-audiostreamer-object.30550/ Click to expand... Thanks. I am going to prove it. Upvote 0
stevel05 said: Soundpool, is only really intended for playing short clips Have a look at Audiostreamer https://www.b4x.com/android/forum/threads/audio-library-v1-5-new-audiostreamer-object.30550/ Click to expand... Thanks. I am going to prove it.
S studio4 Member Licensed User Longtime User Aug 25, 2015 #4 studio4 said: Thanks. I am going to prove it. Click to expand... Solved. Thanks you for your help. I found a solution with mediaplayer object. Upvote 0
studio4 said: Thanks. I am going to prove it. Click to expand... Solved. Thanks you for your help. I found a solution with mediaplayer object.