B4A Example MultiTrigger Soundpool Example - stevel05    
Jan 23, 2015   
(6 reactions)As a response to a forum question a few months ago, I posted an example of using the Gesture 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. This is included in the example. If you are loading a lot of samples, this can take quite a while...
B4A Question soundpool(looping) problem - kimstudio (first post)    
Dec 6, 2024I have no access to google drive so have not tried your app. Could you send me by email kimstudio@16...
link: the use of soundpool, you can also hear me setting the playback speed in the video. My problem...
link: Just had a chance to confirm:
159211
@Erel : Rate should be from 0.5 to 2 for speed change instea...
link: I think there is a parameter for soundpool play to control playback speed....
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....
Italian [RISOLTO] SoundPool - Suoni eseguiti due volte - LucaMs    
Jan 10, 2016Il progetto di prova che ho allegato a questo post funziona bene (si fa per dire!) su un dispositivo...
link: Risolto, grazie ad una indicazione di Erel.
Dovevo dichiarare sia l'oggetto SoundPool che l...
link: Bene, ho scoperto perché sul mio smartphone (4.0.4) la serie di suoni viene eseguita due volte: il p...
link: Altro difetto (che non si verifica su AOS 4.4.2): se esco e rientro nell'app, usando quindi il t...
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.
This is my code:
pid = VoiceIt.SP.Play(StartBeep, 1, 1, 10, 0,0)
But, intermittently, the first time...
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:
You haven't really told us what you are trying to do. If you want to let the user choose a file...
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, 2015I 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... Process_Globals
Dim Sp As SoundPool
End Sub
Sub Globals
Dim Jingle As Int
End Sub
Sub...
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 - TelKel81 (first post)    
Jan 6, 2023   
(1 reaction)Sorry, I did extract the class but I stopped at the instanciation of GameViewHelper... I didn't realize that GameviewHelper was a...
link: Unzip the b4xlib file and extract X2SoundPool class. You can add it to your project....
link: being able to use X2Soundpool, in replacement of Soundpool (B4A) + jAudioclip (B4J) + Mediaplayer...
Page: 1  
2  
3  
4