Android :: Why SoundPool Mute?

Sep 8, 2009

I setup my SoundPool, and load a sound resource as this in onCreate():

soundPool = new SoundPool(4, AudioManager.STREAM_MUSIC, 0);
soundId = soundPool.load(this, R.raw.edible_underwear, 1);

And then I try to play this sound twice in a onClick(), one slow mostly in left speaker, and one fast mostly in the right speaker:

soundPool.play(soundId, 0.9f, 0.1f, 0, -1, 0.7f);
soundPool.play(soundId, 0.1f, 0.1f, 0, -1, 1.5f);

No sound can be heard. I have fiddled with the volumes, priorities and rates. So far to no avail. Am I missing something obvious?

Android :: Why SoundPool mute?


Android : Active Speaker / Option mute And Mute Programatically?

Jan 28, 2010

I have one activity that capture when exist incoming call. How to can active the speaker programatically ? How to can active option mute and option hold programatically ?

View 2 Replies View Related

General :: Way To Quickly Mute Ringtone Without Using Vibrate Or Mute Mode?

Aug 28, 2013

So, I have my app notifications set on vibrate except the one that I want sound for at night. I can't put the phone on vibrate or mute at night because then the push notification for the app will be muted also, so I want to leave the phone on "Sound" but somehow be able to quickly make the ringtone silent for when I go to bed and then in the morning put it back to what it was without going through settings each time and digging through my list of sound files.

View 4 Replies View Related

Android :: Sound Effect Using SoundPool

Feb 12, 2009

there seems to be a dead-lock problem when using sound effects with SoundPool. I was hoping the the problem would be fixed in the new firmware update, but unfortunately, it was not. The application still locks up after couple of minutes when playing sound effects using SoundPool. My application is a game playing a background music scenario with multiple simultaneous sound effects. Any word from devs as when we can expect stable SoundPool would be very welcome.

View 21 Replies View Related

Android :: Stop A Soundpool Of 4 Streams

Aug 22, 2010

What is the Easiest way to stop a soundpool of 4 streams.

mSoundManager.addSound(1, R.raw.svphorn);
mSoundManager.addSound(2, R.raw.svpphaser);
mSoundManager.addSound(3, R.raw.svpwail);
mSoundManager.addSound(4, R.raw.svpyelp);

I need a button to stop all sounds playing @ one time.

View 1 Replies View Related

Android : Most Accurate Method Of Using SoundPool?

Mar 2, 2009

I need a recommendation from someone for the most accurate way of timing SoundPool sounds. I can't loop them because what's desired is not a loop but very accurate (to the ear at least) timing.

View 3 Replies View Related

Android :: Playing Default Ringtone Using SoundPool

Nov 1, 2010

I've been trying to use SoundPool to play the default ringtone without success. In the code below

String ringtone = Settings.System.DEFAULT_RINGTONE_URI.getPath();
SoundPool ringPhone = new SoundPool(2, AudioManager.STREAM_RING, 1);
int soundID = ringPhone.load(Settings.System.DEFAULT_RINGTONE_URI.getPath(), 1);
int soundID = ringPhone.load(ringtone, 1);
ringPhone.play(soundID, 0.99f, 0.99f, 1, 0, 1);

I get the message "error loading content /system/ringtone sample 0 not READY". Replacing the URI with a hard path to an existing mp3 file on the sd card yields similar results.

View 1 Replies View Related

Android :: Prevent Truncating Of Sounds In Soundpool?

Sep 8, 2010

Is there a reliable way to prevent truncating of sounds in soundpool? I have had some success with the sleep() function between sounds, but they still sometimes miss the last bit of sound before starting another sound. My app plays short sounds in sequence.

View 1 Replies View Related

Android :: Sounds Not Loaded - SoundPool Working Correctly?

Feb 25, 2009

I've recently started working with the SoundPool class in SDK 1.1R1, and noticed that my app deadlocks from time to time, or sounds are not loaded. I remember reading, back in November, that this was to be addressed in the next SDK. I've used pretty much the same code that others have used and most of the time it works for a bit. Just a minute ago, the app completely crashed with no "Force Close" and returned to the home screen. Logcat reveals that "HeapWorker is wedged: 26577ms spent inside Landroid/media/SoundPool;.finalize()V" I'm not sure if this is the same issue others had with SoundPool or if I have encountered an entirely new beast.

View 13 Replies View Related

Android :: Cannot Stop Soundpool Loop Even After Exiting Application

Nov 4, 2010

I have a timer thread setup to play a loop using soundpool, but for some reason I cannot get _soundPool.stop(_playbackTimer); to stop the loop. even if I exit the application the loop keeps running. I have to physically power off the phone to get it to stop. am I missing something here? Does anyone have any experience with this? I have searched with no resolution. below is a snippet.

if(timeLeft>0 && timeLeft<20 && ticking == false){ _soundPool.play(_playbackTimer, 0.3f, 0.3f, 0, -1, 1); ticking=true; }
if(timeLeft==0 || timeLeft>20){ _soundPool.stop(_playbackTimer); ticking=false; }

View 2 Replies View Related

Android :: Playing Default Ringtone With SoundPool Or MediaPlayer

Oct 31, 2010

How do I get the default ringtone to play? I've tried using SoundPool (preferred method) and MediaPlayer to play it but I'm getting nowhere. I've done so many dumb things, I'll just include the last fail. In the following snippet: String ringtone = Settings.System.DEFAULT_RINGTONE_URI.getPath(); SoundPool ringPhone = new SoundPool(1, AudioManager.STREAM_RING, 0); int soundID = ringPhone.load Settings.System.DEFAULT_RINGTONE_URI.getPath(), 1); ringPhone.play(soundID, 0.99f, 0.99f, 1, 0, 1.0f);

loads but plays nothing. When I display Settings.System.DEFAULT_RINGTONE_URI.getPath(), it's returning /system/ ringtone

View 2 Replies View Related

Android :: SoundPool.play() Audio Channels Swapped On 1.1 Emulator?

May 20, 2009

I just found that left/right channels are swapped when calling SoundPool.play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate), running in 1.1 emulator on MacOS. Unfortunately I'm far away from my G1 headset (with proprietary connector) so I can't check if the behavior is the same.

View 2 Replies View Related

Android :: Cupcake (API3) Pause / Stop Sound Loops In SoundPool?

Aug 28, 2010

What I have here is a simple button that plays a looped sound while it's pressed. It works great. However, sounds.autoPause(); wasn't introduced until API 8 and I really need something that is cupcake compatible (API 3) So i was going through the dev reference site filtered by API 3 stuff and i saw pause so i figured i'd try sounds.pause(sound); but it doesn't stop the sound when i release it. (Maybe i'm just using it wrong?) Does anyone know of a cupcake friendly way to stop this sound? thanks!

sounds = new SoundPool(5, AudioManager.STREAM_MUSIC, 0); sound = sounds.load(this.getApplicationContext(), R.raw.red_long_one, 1); Then here's my touch event................

View 4 Replies View Related

Android :: Low Level Audio - Latency In SoundPool - AudioTrack For Real Time

Oct 26, 2009

I first have to say that I'm biased, 'cus I like to write music apps (like music generation apps). However, this affects games as well. It's somewhat disappointing how OpenGL has made it into the NDK now but there isn't any NDK methods to get to sound to have faster access. Over the weekend I did some more testing and if you make a "drum" app, for example, and play the sound using either SoundPool or AudioTrack, you will get about a 100ms delay buffer, which is clearly audible (gap).

I made a test app where when you touch the screen, upon the DOWN event, it would play a short sound (like a drum sound). It clearly was not real time responsive or even close - you could hear the delay. I'd be interested to know if anyone who has made a game has any trouble with sounds? It seems like they aren't going to really trigger real time enough if you use SoundPool, for example. Am I completely wrong? Seems like your game is going to perform an action, play a sound, but the sound will have latency which I would think would throw off the game a bit..................

View 12 Replies View Related

Android :: Music Player With EQ And / Or Mute

Jul 19, 2010

is there a music player that has an equalizer in it? and is there a music player that will mute all other system sounds? like i be pumping my music at 200 watts in my car from my phone and then the phone rings or a text message comes in and it BLARES.

View 3 Replies View Related

Android :: Set Ringer To Mute During Certain Times?

Nov 17, 2010

I know there are apps that can set the ringer to mute during certain times of the day. However, I am wondering if there is an application that will allow me to tell the phone to not ring for the next hour (or any set amount of time). The problem is that periodically I will go to an unscheduled event in when I want to mute the phone, but inevitably forget to unmute later. I'd like to quickly choose to mute for an hour and then it automatically unmutes after an hour...

View 12 Replies View Related

Android :: Using SoundPool But Sound Plays After A Delay - Sound Is Lagging

Dec 18, 2009

I am using the SoundPool as follows:

Caching my sounds:

CODE:..........

Playing a sound effect i.e when button is clicked:

Resources.playSound(context, Resources.SOUND_PIECESELECT);

However as I said the sound is lagging. What can I do to improve this? All my sounds are OGG file format.

View 9 Replies View Related

Android :: Detect If Microphone Is Mute During Call

Apr 2, 2009

I would like to detect if microphone in the device or in a headset is mute during a call. Currently I've taken the following approach (unfortunately - it does not work): 1) register PhoneStateListener to detect when a call is started/ finished 2) when call is started then I start a thread that periodically calls audioManager.isMicrophoneMute() method to discover a microphone status. (audioManager is obtained by calling getSystemService (AUDIO_SERVICE) ) 3) when call is finished I stop a thread started in bullet 2

Unfortunately audioManager.isMicrophoneMute() always returns 'true', does not matter if I select or deselect the 'Mute' option in the menu during a call. Does anybody know if it is possible to detect the state of a microphone during a call?

View 3 Replies View Related

Android :: Mute Player On Incoming Call?

Jan 28, 2009

I have written a small player application. I want to handle incoming calls in my application. Actually while player plays some media file, if an incoming call comes, then my player should mute the volume and when the incoming call is done, the player should unmute the volume.

View 2 Replies View Related

Android :: Twitter Application With Mute Function?

Sep 7, 2010

I'm looking for a twitter application for Android that allows a mute function. I know Ubertwitter has it on Blackberry and Brizzly has it for the iPhone. I cannot find anything for android though. I have friends who I like and do not want to unfollow (nor do I want them to know I unfollowed them), but sometime these people go on rants and I would just like to be able to not have to see them when they decide to do it.

View 2 Replies View Related

Android :: Mute Currently Playing Audio Applications?

Jan 3, 2010

My self-teaching project is a small application which plays an audio news stream. To be effective, the application really needs to interrupt any currently playing media players (eg: Last FM, Imeem, music player, Spotify etc).I don't know what will be playing or what application will be playing it, but I want to ask them all to pause until I've done. Sounds rather bold, I know, but it must be possible, because when there's an incoming call, that's basically what happens.Can I send a message to all audio players asking them to pause for a moment? Could I spoof an incoming call, just for the time it takes?

View 2 Replies View Related

Android :: What Does Mute Mean? / Possible To Custoize Inbox Notfications?

Nov 7, 2009

I noticed there's an option to "Mute" a message in the Gmail App.What exactly does this do?It appears to remove it from the inbox and archive the message in the "All Mail" label in Gmail.When checking online (the non-mobile web), it states "Muted" in the "All Mail" label.However, if additional emails arrive from the same sender, there will be still be a notification. Perhaps it's just muting the conversation (with the identical subject)?It appears if mute a message, it'll just mute that conversation and possibly future emails within the same conversation.

View 2 Replies View Related

Android : Unable To Mute Microphone In Droid

Jun 15, 2010

I'm working on an app that uses AudioRecord class to get input data from the phone mic. For some reason I'm unable to mute the mic. I have tried with different AudioSources (DEFAULT, MIC and VOICE_UPLINK) when creating the AudioRecord object, but there's no difference in the muting behaviour.

View 4 Replies View Related

Android : How To Mute Ring But Not Media / Texts?

Jul 10, 2010

Any way to mute the ring tone but still allow text message sounds and media sounds? (from my other apps)

View 4 Replies View Related

Android :: Suppress / Mute All Incoming Call Or Sms Notifications

Oct 7, 2009

is it possible to suppress all notification messages e.g. incoming call or sms notification? Actually, I am developing a game and I want to given an option to user to mute all notifications (some thing like do not disturb :)) while playing game.

View 2 Replies View Related

Samsung Fascinate :: Cannot Mute While Call

Nov 13, 2010

While in a call I cannot mute the call whether on speaker phone or headset speaker. I have tried soft reset, hard reset and the dreaded factory reset. Nothing, still am not able to mute a call. This will be a deal breaker for me as I need this to work for my job. I have searched for this and pretty much have found nothing other than folks having muting problems when their face makes contact with the screen while in a call. I have no prob with that. As long as I am listing probs that I have found: Whenever I exit browsing the web my screen brightness goes to full bright and will not adjust itself anymore until I turn the phone off and then back on.

GPS takes from 10 sec to 10 min to connect, very sporadic, and the turn by turn Nav is pretty much useless due to the extreme low volume. Why is it that the speakerphone is extremely loud and most media volumes are nearly whisper quiet? 3G is on again off again 50 % of the time and it shows by my time without a signal, anywhere from 25% to 45% on a daily basis. I never had that problem with the Dinc. Never had more than 2% TWS with the Dinc. Not praising the Dinc here, just stating a fact.

dbm readings are way off. Standing right next to a tower I cannot get below a -86 dbm reading. Again not praising the Dinc but it would read -50 dbm in the exact same location. Just using the comparison for myself to determine if it is a prob with the SF. Get a ton of complaints when using the phone outside when there is even the slightest breeze. Folks have a hard time hearing me over the howling wind noise. Very aggravating. For those that are gonna bash, save it. If you have solutions to the above problems please let me know what they are as my 30 day trial is coming up and I am leaning towards a return. This is the 2nd SF that I have tried with the same results also. The screen on this, camera, video pic quality, and many other great features make this a real bitch, but I need first and foremost a phone that I can mute calls on and talk on outside even when its a breezy day.

View 1 Replies View Related

HTC EVO 4G :: Mute Ringtone On Incoming Texts?

Jul 14, 2010

how do u mute the ringtone when a text comes in. i tried pressing the volume button but that didn't work

View 2 Replies View Related

HTC EVO 4G : How Can I Mute Ringer By Pressing Screen?

Jun 10, 2010

Was wondering if you can mute the ringer quickly. Say, if the phone is ringing and you know you don't want to answer it. Or you forgot to turn off the ringer in church or something. Is there a way to just mute the ringer WITHOUT sending the caller to voice mail immediately (by pressing ignore)..

View 7 Replies View Related

Samsung Moment :: How To Mute Incoming Calls?

Jan 9, 2010

when i get incoming calls i dont want to take and i want to silence the phone i push the red phone button on the lower right, but this automatically sends the call immediately to voicemail and sometimes people can tell you are ducking their call. is there a way to mute the ringer w/o immediately sending the call to voicemail?

View 1 Replies View Related

HTC Incredible :: How To Use Calendar Appointments To Mute Phone?

Aug 3, 2010

Probably the only thing I liked about my Windows mobile phone was that it looked at my calendar and if I had an appointment it would mute my phone. I use touchdown for my exchange syncing. Is there software that can do this automatically?

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved