Android API : The SoundPool class manages and plays audio resources for applications
Questions tagged [soundpool]
594 questions
-1
votes
1 answer
Soundpool or MediaPlayer ? - Android
I am so confused of those two classes.
I have a problem that I have 1000 of .wav files, it depends on user to load different sounds.
as well as, user can play many sounds in a row, like 4 sounds sequentially.
so which should I use? SoundPool is…

MBH
- 16,271
- 19
- 99
- 149
-1
votes
1 answer
Android: button plays 2 sounds onClick
I have a GridView with buttons. I have edited the GridView.onItemClickLisener to play a sound when a button is clicked:
mGridView.setOnItemClickListener(new OnItemClickListener() {
@Override
public void…

liarspocker
- 2,434
- 3
- 17
- 26
-1
votes
1 answer
How to disable and enable layout according to sound play in android
In my app I am playing sound if user press on layout. But the problem is if user press layout again and again. Sound repeating again and again. I want layout become disable if sound is playing and enable when sound finish. so that user able to play…

John R
- 2,078
- 8
- 35
- 58
-1
votes
2 answers
EditText text use as filename
I have application that will search for song on external storage and play it by clicking a button. I use String path = getFullFilePath(getApplicationContext(), "FILENAME"); and it works fine if i type something like song.mp3...I tried to use…

Tom Jackson
- 230
- 3
- 17
-2
votes
1 answer
Is there a way to Amplify & Adjust Sound Output in my Mobile Application for Deaf Peoples?
I'm planning to develop a mobile application for people having hearing problems (not fully deaf), the idea is that the person with hearing loss will plug in his/her headphones into the phone, and the app will take input from the microphone and…

Zubair
- 1
-2
votes
1 answer
Selecting a Sound in an activity to be played in another activity
I have this idea that I couldn't code so I'm here Asking for help
I have two activities the first one :
Xml file : Button
Java File : a click listener for the Button to play a sound effect with the SoundPool class from res/raw
--all simple--
what…

Claude nix
- 13
- 2
-3
votes
1 answer
C#.NET Determine blow sound using microphone
I am working on a UWP app which needs to keep listening to the sound and recognize a hammering sound.
For every blow of hammer strike I need to save the system time.
I have looked at few algorithms like
Clap sound detection in C#
but none-of-them…
-3
votes
2 answers
How do I add another button to this piece of code?
I have added a button called buttonA to this .java file which plays the sound file 'clubb1'. How do I add other buttons such as buttonB and buttonC etc. and link these to new sound files such as 'clubb2' and 'clubb3' within this code? I am new to…

Jonathan Chappell
- 197
- 2
- 2
- 10
-3
votes
1 answer
How to use soundPool in a custom view class?
I am making a simple demo which with a custom view class extends the view which want to shows random circle with random color who can appear randomly on a canvas.
I have already make the random issue and set a onTouchEvent to judge whether the Click…

Steven YUAN
- 15
- 5