B4A Example MultiTrigger Soundpool Example - stevel05    
Jan 23, 2015   
(6 reactions) Library and Soundpool to create a musical instrument interface. The example is simple an has only two sound samples, but is easily extended.
I am reposting as the latest version of JavaObject with B4a V3.8 allows setting Interfaces. Soundpool has an OnLoadCompleteListener, which can now be accessed... the use of the instrument until all sounds have been loaded, making a more user friendly app.
The sample just Logs when loading is complete, as it only loads two sounds, but you can use the listener to...
B4A Question soundpool(looping) problem - MasterGy (first post)    
Dec 5, 2024 instead of (0 - 2) in the doc.
public final int play (int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate)
Added in API level 1
Play a sound from a sound ID. Play...
link: [email protected] if convenient? I'd like to try.
I guess for stable sound application self managed...
link: instead of (0 - 2) in the doc.
public final int play (int soundID, float leftVolume, float rightVolume...
link: Hi !
if you want to test whether all sounds are heard, I'm curious.
The soundpool 'loop...
B4A Question SoundPool current playing position - peacemaker    
Aug 30, 2017HI, All
How to set\get the current position of SoundPool ?
I need to make a multi-track player....
link: Yes....
link: Thanks, Erel.
So, if i need 4-5 tracks playing at the same time (i guess all should be pre-loaded in...
link: SoundPool is intended for short sounds. You should use MediaPlayer for longer playbacks....
B4A Question SoundPool - Sound played twice - LucaMs    
Jan 10, 2016In a project containing some AnimationSet (library AnimationPlus) I use a SoundPool object to play a sound.
Installed on a device with Android 4.4.2 the sound is correctly played once,
on a device...
link: Discovered the problem of no sounds: I must declare also the LoadID in the process globals! Wake up...
link: Not at all.
Well, I take this opportunity :). I'll attach one of my tests here, it is in fact on...
link: because you're already overworked
Not at all....
B4A Question Soundpool sound not playing on first run... - JohnC    
Aug 30, 2016I am using the Audio Lib 1.63. And I am using Soundpool to play a quick "beep" file... attempts to play the same sound in the same app session work 100%. So it just sometimes has issues...
link: starts, then play my beep - maybe the blank sound file will wake up Soundpool so it's ready for...
link: It looks like a bug in the OS: http://stackoverflow.com/questions/8458498/why-does-my-soundpool...
link: Darn, I tried the delay, and still have the intermittent problem, but the SP.Play still returned a p...
B4A Question SoundPool Play folder - stari (first post)    
Apr 10, 2023
Try this
Private Sub btOpen_Click
Dim cc As ContentChooser
cc.Initialize("cc")
...
link: Try this
Private Sub btOpen_Click
Dim cc As ContentChooser
cc.Initialize("cc")
...
link:
I can upload them, but I don't know how to "put" them in a folder, programmatically n...
link: by uploading new sounds. I can upload them, but I don't know how to "put" them in...
B4A Question SoundPool - Huguenotte (first post)    
Mar 11, 2023ok y find use mediaplayer for the long song !...
link: sounds As SoundPool
sonperduId = sounds.Load(File.DirAssets, "perdu.mp3")
sounds.Play...
B4A Question Soundpool Clips Playback - RichardN    
May 7, 2015 Process_Globals
Dim Sp As SoundPool
End Sub
Sub Globals
Dim Jingle As Int
End Sub
Sub...I have an app that should play a certain 'jingle' when required by program activity. I realise the Audio Lib Soundpool object has limitations but I have a 10 second 'jingle' (~300kb) that completely refuses to play more than the first ~6 seconds before cutting out.
I have tried...
link: It is not related to the available memory. SoundPool can only be used for short audio playbacks...
Wish Make X2Soundpool available as a standalone library - Erel (first post)    
Jan 6, 2023   
(3 reactions)Unzip the b4xlib file and extract X2SoundPool class. You can add it to your project....
link: Sorry, I did extract the class but I stopped at the instanciation of GameViewHelper... I didn't realize that GameviewHelper was a...
link: being able to use X2Soundpool, in replacement of Soundpool (B4A) + jAudioclip (B4J) + Mediaplayer...
B4A Question How to play sound for only once by using Soundpool - Janusz Chmiel    
Nov 3, 2022Dear developers, does somebody us know how to play .mp3 file by using Soundpool? But I only want so that Sound pool will not play one file for twice or for more times. I have found ount one Soundpool...
link: I can confirm, that Play work thanks to your advice how I have wanted. Very well done and thank you....
link:
SP.Play(...) 5th parameter (Loop as int) should be set to 0
135598
Thank you very much for your f...
link: SP.Play(...) 5th parameter (Loop as int) should be set to 0
135598...
Page: 1  
2  
3  
4  
5