Questions tagged [soundpool]

Android API : The SoundPool class manages and plays audio resources for applications

594 questions
0
votes
1 answer

Android SoundPool: AudioFlinger error

My SoundManager class uses SoundPool for it's audio. I have a sound that will loop, 1 second on and 2 seconds off until told to stop. The problem is that this will execute once and then I notice an error in logcat saying "SoundPool: Error creating…
Dogz1
  • 70
  • 2
  • 9
0
votes
1 answer

Using another sound engine

Im currently working on a project where the audio is a big thing. I have about 20-30, 3-4 secound clips as is supposed to be played (Max two at a time). (Clips are max 180kB each) And im also planing to pitch these clips in real-time. The standard…
Sebastian
  • 2,698
  • 2
  • 17
  • 26
0
votes
0 answers

How to load sounds from a SoundManager to all activities in one step?

I am trying to figure out how to load a variety of sounds in an app. I have my soundmanager working smoothly, shown below: package com.beeseries.contextclues; import java.util.HashMap; import android.content.Context; import…
codesomethin
  • 195
  • 1
  • 3
  • 11
0
votes
1 answer

SoundPool Streams

So I have soundpool OnLoadCompleteListener which has this code mStreamId = soundPool.play(sampleId, 1, 1, 1, 0, 1f); and i have 2 buttons that will play diffrent soundpools.I use mStreamId to stop soundpool.My problem is when i click first button…
user1798049
  • 265
  • 1
  • 3
  • 15
0
votes
1 answer

Load Preference EditText text and use it as filename

So I have Preference EditText in my application and i Want to get that text from EditText and use it as filename in this code String path = getFullFilePath(getApplicationContext(), filename); I've tried this : SharedPreferences getPrefs =…
Tom Jackson
  • 230
  • 3
  • 17
0
votes
1 answer

VideoView with soundPool at single time

How can I realize it? VideoView is working fine, but there is no sound from soundPool. soundPool = new SoundPool(4, AudioManager.STREAM_MUSIC, 100); soundsMap = new HashMap(); soundsMap.put(SOUND1,…
Eves
  • 1
0
votes
2 answers

How to play more than 32 sounds using SoundPool?

Since my last question hasnt been answered where I used simple medaiplayer (Sound sometimes remains silent when playing more sounds in a row, why?) and tried to create the whole thing using SoundPool. But guess what, almost same thing happens but…
Jani Bela
  • 1,660
  • 4
  • 27
  • 50
0
votes
0 answers

How to use SoundPool in class that extends Button?

Possible Duplicate: Play sound with SoundPool How do I set up SoundPool, I tried the usual way but no sound was played. There are no problems with the music file. I would like the Sound to play on Action_Down and stop at Action_up. Mediaplayer…
Chris Rohit Brendan
  • 893
  • 1
  • 9
  • 20
0
votes
1 answer

Soundpool stop issue?

Soundpool stop function not working. I have many images which image is in the view that time i need to play that image related sound, I tried using soundpool object music is playing nice.but my problem is in scrolling time if i speedly move 1 image…
Erdem Azaklı
  • 255
  • 1
  • 8
  • 27
0
votes
1 answer

SoundPool: What is the "path" in the "load(String path, int priority)"

Here's a question I had stumbled upon a few days ago. The question is asking for how the method, "load(String path, int priority)" should be used, and what syntax the "path" variable should be like. Unfortunately, all the answers to that question…
tom_mai78101
  • 2,383
  • 2
  • 32
  • 59
0
votes
1 answer

Soundpool issue

I'm working on a little game that is uses soundpool to play small sound-files. However, it now seems that I have too many sound files that I want to add to the soundpool since I get an error saying that the heap has an overflow. So then I tried to…
Araw
  • 2,410
  • 3
  • 29
  • 57
0
votes
2 answers

Sound Related Crashes on Wildfire S w/ cocos2dx

I am having trouble with a frequent crash on the HTC Wildfire S related to sound (there are similar looking, but less frequent, crashes on other devices like Thunderbolt). I have tried a wide variety of things to fix it, or at least learn more about…
ajtc
  • 23
  • 3
0
votes
1 answer

Android soundpool null pointer exception

I want to play a sound file with soundpool. I am getting error message when I am playing an audio file. ("Unfortunately, the process galeri has stopped" ) How to play short sounds while swiping pages? Thanks. The code is; package…
Erdem Azaklı
  • 255
  • 1
  • 8
  • 27
0
votes
1 answer

Android Soundpool VS Vibrator

I have to let the Smart phone vibrate and simultaneously play a sound. I tried something like this: soundPool.play(sID, 1.0f, 1.0f, 1, 0,1.0f); vibrator.vibrate(90); The Problem is that the Phone vibrates instantly but the soundpool starts with a…
0
votes
1 answer

Alarmmanager & Soundpool - Android

I'm doing an alarm System. The alarms are working OK, but the sound doesn't work.. I'm doing a little test and I don't understand where is the problem.. In the Alarm activity, I've the following code: …
Héctor Ortiz
  • 257
  • 1
  • 6
  • 17