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.

Android :: Stop a soundpool of 4 streams


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 :: 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 :: 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?

View 2 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 : 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 :: 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 : Play .asx - .pls Streams?

Jun 3, 2010

How can I play a .asx or a .pls stream? I tried Stream Media Player, but to no avail.

View 1 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 :: How Does CTS Work - Where To Get The Test Streams

Nov 16, 2009

I am working on the CTS (Compatibility Test Suite), but I am a newer.

From my test, I found the following Fail:

CODE:.....

I have checked the CTS source code. And find the the following source code:

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

View 3 Replies View Related

Android :: I/O Streams - Multiplayer Game?

Nov 11, 2010

I am developing a multiplayer game on android. I am having a Java server and android client. The android client issues multiple requests and receives responses from the server. However the performance is not smooth. At times the data received at the Java server is not what I send from android. It is junk or zeroes. However, some times, data is correctly received.

I was wondering is there any data loss in between and why? I am using java.net on both ends. Please let me know if anybody was facing a similar problem anytime during android development.

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 :: Fiel Download - Java.net.URL - Streams

Oct 14, 2010

I am developing android a few days now and startet to write an application that gets a file from a server to display the content.

I have this code here

CODE:.....

The strange thing is that nothing is shown in the TextField. If I test the code in a standard java project the printing of the data (with println) works correctly in the console. But when i run it on the android vmachine nothing is shown. I got no more ideas left to proof the code. Anyone has some advices for a newcomer?

View 2 Replies View Related

Android :: PVMFFailure When Using MediaPlayer For Radio Streams

Sep 1, 2009

I am trying to build streaming radio into my app, which works fines streaming files over the internet, but when i try to use a shoutcast url in get the error below, which from the soruce code looks liek the mediaPlayer is looking for the duration in the header. Does anyone know if shoutcast urls will work withthe default media player? Or do i have to download chunks into a ping-pong buffer sor something? The url has no porblems downloading via the browser.

the error is:-

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

View 15 Replies View Related

Android :: Accessing The Data - Voice Streams And IOS Platforms

Sep 28, 2010

I haven't done any work with the Android or iOS platforms, but I have recently been pitched a project and I'm trying to see if it is even feasible.

Is there currently API hooks in the iOS and Android platforms for accessing / manipulating the voice / data streams? What I would like to do is encrypt all outgoing steams and decrypt all incoming streams before they reach and other processes that need that data.

I would assume that because the Android platform is open source one should be able to do this, it just may have to be hacked together. I'm more worried about iOS.

View 2 Replies View Related

Android :: Stagefright Mediaextractor - How To Detect Interlaced Streams In Video Files

Sep 7, 2010

Is it possible to detect scan type (progressive or interlaced) of a video file in stagefright?

I see below listed fields are query-able with metadata of file through stagefright, but not scan-type which i guess is avaiable in MP4 file header. Any hint on how to detect scan-type of video file at Stagefright player driver? Or is it available in opencore?

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

View 3 Replies View Related

Media :: An App That Plays Aac Streams?

Apr 22, 2010

AOR by leadapps did this well. But when I upgraded my moment to eclair 2.1, I could no longer find the app. This is one reason the android experience has been a let down for me; I'm no bagger or birther, but damn...this is one socialist OS. Anyway, what have you used to hear streams of .aac's?

View 2 Replies View Related

HTC EVO 4G :: TWIT Tv Streams Live With 2.2?

Aug 3, 2010

Just an FYI - on 2.1 Twit Live stream was dead, now it is alive and well - at least for me the 400kpbs stream seems rock solid.

Sorry if you aren't into Twit, but I watch that livestream pretty regularly.

View 3 Replies View Related

General :: In-app OpenVPN Connection (via Streams And Sockets)?

May 22, 2012

Is it possible to write a in-app openvpn connection (via streams and sockets)? If it is, then is there any android application which managed that already? I have also problems finding in-depth openvpn protocol description.

View 4 Replies View Related

Motorola Droid :: Remote PC Application That Streams Audio?

Jan 25, 2010

I have the paid application PhoneMyPC and it's truly great. It does everything that it claims to do really well. The only thing that is lacking is the streaming of audio. Is there an app similar to PhoneMyPC that streams audio as well as video?

View 5 Replies View Related

Motorola Droid :: App That Streams Electronica Type Music?

Mar 27, 2010

I am still relatively new to android apps and was wondering if there was an app any of you might know of that would enable me to listen to Electronica/House/Trance type radio stations?

View 8 Replies View Related

Motorola Droid X :: List Of Live Blogs & Streams

Jun 23, 2010

The day has finally come for the big announcement event. Most of us plan on following the conference live online, through a blog or hopefully a video/audio stream. This is a private event, so the chance of a video stream is obviously low. Nonetheless, I will be hunting the internet for a live feed just in case one's out there.

Let's use this thread to post links to the live blogs and/or streams, to make it a bit easier for people that aren't sure where to look. I'll do my best to update this first post throughout the day to reflect newly found links.

Live Blogs

Engadget
http://www.engadget.com/2010/06/23/live-from-verizons-motorola-droid-x-event/?sort=newest&refresh=20

Android Central
[url]

Verizon Wireless on Twitter
Verizon Wireless (VerizonWireless) on Twitter

Cnet
Reminder: Verizon Droid event June 23 | Android Atlas - CNET Blogs

Thedroidguy
[url]

MobileCrunch
[url]

Live Streams

None yet

View 49 Replies View Related

Games :: Create Home Screen Shortcuts To Radio Streams?

Sep 28, 2010

For example, Gensoid Lite, a Sega Genesis emulator, allows you to create homescreen shortcuts to launch specific ROMs inside the app. Are there any internet radio apps that have this same functionality? I'd like to create some icons to access my favorite stations right from the homescreen instead of opening the app and going through there. I've tried XiiaLive, Cherry rPlayer, Google Listen, and TuneIn Radio and none of those have this functionality.

View 2 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

Sony Ericsson Xperia X10 :: Apps To Play Online Radio Streams?

Sep 22, 2010

Any apps available to listen to online radio streams?

View 4 Replies View Related

General :: XBMC Livestreams Plugin To Play Streams From Links In XML File

May 19, 2012

App like xbmc livestreams plugin to play audio/video streams from xml file (url) with streaming links. looking to use it on android TV box.

Or if there is something allready available

View 2 Replies View Related

General :: Samsung Galaxy Nexus V4.4 - Video Streams Display Will Turn Automatically Off

Oct 10, 2013

I just switched from WebOS so I'm quite a noob to Android. Anyways, I bought a new Samsung Galaxy Nexus with Android 4.4.

Now to my issue: I like to watch video streams. The problem is, that the display will turn automatically off.

Solutions:
1. Play a stream with a video player - how can I do this?
2. Change settings so the display will not switch off on a stream, but will turn off when idle - is this even possible?
3. Turn off "turn off display when idle" setting - but I don't like this one.

View 4 Replies View Related







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