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
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
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
Feb 14, 2009
I'm just trying to play a local video that is a resource with the MediaPlayer class in the most simple way possible. I have confirmed that the video works with players that I download from the marketplace, so I'm assuming that's not the issue.
The problem is that I just get a black screen with no video. There is audio from the file playing though, so I know that the file resource is being accessed correctly, it's just not showing anything on the screen in the emulator.
The one other note is that at any time whenever I try to access getVideoWidth() or getVideoHeight() I get this (non-blocking) error:
ERROR/MediaPlayerService(24): getVideoSize returned -1
Any ideas as to what I could be doing wrong?
import android.app.Activity; import android.os.Bundle; import android.view.SurfaceView; import android.view.SurfaceHolder; import android.media.MediaPlayer;
Code...
View 9 Replies
View Related
Aug 15, 2010
It may happen to everybody or it may just be me. Im trying to figure out if theres a work around, or some way to exclude game sounds from playing in the music application (example, if you're like me, I always have my music on shuffle. So it shuffles everything including sound/music from game foldera also.
View 4 Replies
View Related
May 2, 2014
Any way to play a sound file while the bootanimation is playing on CM11(specifically beanstalk, but being as it is cm based...) the reason im asking is because i would like the option to play a sound file of my own choosing rather then have no sound at all.
View 2 Replies
View Related
Aug 28, 2012
I installed kasty-cube_u30gt_h-41-01 on my cube u30gt but find that there is a slight delay between the units sound output and the sound coming from the TV, is this normal? or is it just my ears echoing All else seems fine.
View 1 Replies
View Related
Sep 12, 2010
I want to get rid of the sound that plays when you turn on and turn off the phone, and the video too if possible. But I can't find the file on my phone to delete it.
View 2 Replies
View Related
Mar 4, 2012
i have a button setup to play a sound,but nothing plays until i release the button again. here's my code
Code:
bKick.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
sp.play(dance_kick, 1, 1, 1, 0, 1);
}
});
View 8 Replies
View Related
Jul 10, 2010
In my application, RTSP streams play only sound without video, but if i specify the video path as a local file, it plays the video and audio.
How would i get the RTSP streams to show video?
CODE:.................
View 2 Replies
View Related
Jan 11, 2010
Its probably just because I am a tard but can you make it so when you put it on silent you cant hit the volume up and down on the Motorolla Droid.Also can I make my notifications vibrate instead of sound or no sound?
View 1 Replies
View Related
Jul 29, 2010
ON my incredible I used to get a sound when making selections and such but now its barely audible. My volume is all the way up. What happened?
View 5 Replies
View Related
Aug 2, 2012
how can i stop sound with media player after clicking another sound button? and how can i set alarm/ringtone/notification when long press adding admob on my app, ive read all posts i could google but still i get errors,\
code:
final MediaPlayer sound01 = MediaPlayer.create(this, R.raw.sound01);
Button s01 = (Button) findViewById(R.id.button01);
s01.setText(this.getString(R.string.quote01));
s01.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
[code]....
View 1 Replies
View Related
Oct 3, 2010
My HTC Desire seems to have stopped singing the "tik tik" sound (the sound when you clicked on any program).
In Settings -> Sound Settings -> Feedback
I have them all checked, but for some odd reason, I still didn't get the sound.
View 2 Replies
View Related
Apr 4, 2010
I am at work and i cant figure out how to turn off the ringer sound while keeping the sms sound everytime i turn the ringer off it for a to silent mode.
View 2 Replies
View Related
Apr 28, 2010
Right now my phone makes the same sound whether I get a email or a text message. Can I make one have a different sound than the other? If so please tell me in detail how. I only see one notification sound area.
View 7 Replies
View Related
Aug 4, 2010
I am looking for the default sound files from the Incredible. Specifically, I am looking to the "doot" sound when you press the volume slider. Does anyone have this sound file? It is not located with the alarms, notification, or ringtones. Also, as an added bonus, I am looking for the notification sound from SportsTap as well.
View 1 Replies
View Related
May 20, 2013
I am currently an iPhone 4s user and really like the way that the switch toggles between no sound (vibrate) and sound. I leave me phone in vibrate mode for most of the day and in the evening I tend to switch it to sound so I can hear the alerts from around my house when I don't have the phone with me. I am thinking about switching to an android device (S4 or HTC One) and have a few friends that haven't been able to duplicate the behavior of the iPhone. They get sound with vibration or some other weird combinations that wont work for me. Is this a limitation of the OS or is it device specific? I basically want everything to vibrate (Ringer, SMS, Email) with the option of changing everything to sound, no combinations of the two. I also need to distinguish between types of messages by using different vibration patterns.
View 1 Replies
View Related
Aug 31, 2009
How to create a tone lets say 10khz / 5 secs. something like that,, just play a individual created sound, not playing a mpg or so?
View 7 Replies
View Related
Apr 30, 2010
Can I place a trimmed ringtone for a notification sound i.e sms.I have tried various things and I only seem to add it to ringtone alert.I am using the Htc Desire and MP3 File trimmed through the Desire own trimmer.
View 5 Replies
View Related
Sep 27, 2010
I just picked up a Droid, after having blackberries for years. One thing I noticed about the droid is the lack of sound profiles. I basically had two profiles I would use on my blackberry and after downloading the app ' simple sound profile widget' I still cannot manage to get the two profiles I used on my blackberry. Here is the settings I would like to achieve:
Profile 1: vibrate only for sms/mms messages and phone calls (all other notifications silent)
Profile 2: Silence everything except alarm clock.
I think the main problem is that i cannot figure out how to separate out texts from all other notifications (emails, etc.)Any help would be appreciated. I kept hearing about how customizable droids were so I just assumed this would be doable.
View 17 Replies
View Related
Mar 17, 2009
I'm looking for a way to work on sound . I would need to get the mic input as raw data and to perform some test , is there a way to get raw sound data ?
View 3 Replies
View Related
Oct 26, 2009
I have a python application (anki) running under ASE. It is a simple web server that uses the browser as a UI. My only issues are playing sound, which are stored locally. On the iphone, anki uses a command line app (play) to play the mp3 files. Unfortunately, there is no command line app that I can call that takes a filename as an arg and plays it. What are my options with android?
- write a sound service that sits and listens for a filename to play; possibly listening on a port for filename
- write an Java-app that I call from within python that forks off and loads a specified file, plays it and then exits. Can you call other java apps from ASE?
- wait till the browser supports the <audio> tag. I guess this is html5, but am unaware if this will be on android any time soon.
View 2 Replies
View Related
Nov 26, 2009
Quick question i just got the droid today came with the free facebook app. i set it up so when i get a notification it should make a sound thru the phone and have the LEd light come on. well i had a friend send me a comment, and on my laptop it showed it but the droid never did any sound or anything to show that i recieved the notification.
does anyone know of this? or how to set it up so it does it.
View 3 Replies
View Related
Jun 30, 2010
I have encountered another problem that I can't seem to find a answer for from googling ,the problem is that I downloaded a video to my phone and although its there the the video starts I can hear the sound and everything but there is no picuture with it...
View 3 Replies
View Related
Nov 7, 2010
How do I go about getting my app to play an mp3 (in my res) on startup? Or how how about if I wanted this to happen when a button is clicked?
View 1 Replies
View Related
Dec 15, 2009
I am getting this clicking sound when playing static pcm data. Anybody out there is having the same problem? This is not the data issue.
View 7 Replies
View Related
Oct 5, 2010
Can't find a way, unless I just turn the phone sound off completely.
View 2 Replies
View Related
Oct 17, 2010
I know where to change the notifications sound but I can choose different sounds for different applications? (Exchange, Gmail SMS). If not is there a software that can do this?
View 3 Replies
View Related
Oct 12, 2010
So I am new to the Android phone, have had it for about a month. Hopefully this isn't a stupid question but how do I get the reminders from my calendar with a sound to go with it.
View 2 Replies
View Related