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.

Android :: SoundPool.play() audio channels swapped on 1.1 emulator?


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 :: Audio Record And Play Recorded Audio

Jun 2, 2009

Could you please let me know how to do the audio record in android emulator and play the same recorded audio. Could you please help me in proceeding in development.I tried with MediaPlayer API's also.Its not working.

View 5 Replies View Related

Android :: Unable To Play Youtube Videos On SDK 1.5 Emulator - But Playing Well On SDK 1.0 Emulator

May 19, 2009

Unable to play youtube videos on SDK 1.5 emulator - but playing well on SDK 1.0 emulator. Can you update the source....

View 7 Replies View Related

Motorola Droid : How To Play Audio From Phone Through RR Audio System?

May 5, 2010

I connected my phone via USB to my RR sport to upload audio files to the RR hard drive. However, I keep getting connection error. Apparently my device is not being recognized as a storage. I did the unmount thinking. Also, I am wondering how I can play audio from my phone through the RR audio system.
RR is 2010.

View 2 Replies View Related

HTC Incredible :: Trying To Play Music - Says Unable To Play This Type Of Audio

Apr 28, 2010

I took out the 8GB SD card from my Blackberry Storm and put it the Incredible.

I had a bunch of music saved on my SD Card that I downloaded from VZW Music Media thing.

When I go to music on the Incredible and go over the song (it shows the picture of the album of the song)

it says "unable to play this type of audio"

View 10 Replies View Related

Android :: Play Remote Audio File In Android Audio Player

Nov 12, 2010

I am working on a application that would allow users to play remote files. My question is how do I open those remote files to be played in the default android player?but this does not give me control of what is happening!

View 2 Replies View Related

Motorola Droid X :: Swapped Out Freeze Prone DX For New DX

Dec 1, 2010

So about three weeks ago I switched from ATT iPhone to Verizon DX.Couldn't have been happier, I've been an ATT network apologist for years, and I am eating my words with gusto.Also, absolutely love the android. Now, the first DX they gave me would freeze on the motorola screen when I would turn it off (wait a couple few minutes) and turn it back on. I would have to do a battery pull and wait at least an hour to put the battery back in and turn it on in order to get it to boot. Brought it in, got a new one. This one starts up just fine every time, but I'm having two noticeable problems so far.

1 - It is waaaay slower than the first DX I had. I was so impressed/happy with the responsiveness of that first phone. Absolutely no lag anywhere, no lag on the unlock bar, no lag opening apps, scrolling through contacts, nothing. Now I'm getting very choppy lag on the unlock, contacts, apps, facebook and googlemaps will stop responding, etc...

2 - When I try to open the battery manager usage statistics, it gives me an error "The application Settings (process com.android.settings) has stopped unexpectedly.

I have looked through some other lag threads on here, and have tried turning off animations, changing to performance mode, neither having any real effect.My settings and apps are identical to the first phone (neither rooted by the way), what happened here?

View 6 Replies View Related

Android :: Play Audio From Stream?

Feb 10, 2010

How to play audio from a stream in android? I will get input stream from an online link( like continuous FM). I need to cache the stream and play it. I searched a lot in sites,,,but didnt get.They show option of playing from a stored file. There is no option to play from a stream.

View 12 Replies View Related

Android :: Getting Audio To Play Through Earpiece

Jan 22, 2010

I currently have code that reads a recording in from the devices mic using the AudioRecord class and then playing it back out using the AudioTrack class.My problem is that when I play it out it plays vis the speaker phone.I want it to play out via the ear piece on the device.Here is my code:public class LoopProg extends Activity {
boolean isRecording; //currently not used
AudioManager am;
int count = 0;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
am = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
am.setMicrophoneMute(true);
while(count <= 1000000){
Record record = new Record();
record.run();
count ++;
Log.d("COUNT", "Count is : " + count);
public class Record extends Thread
{ static final int bufferSize = 200000;
final short[] buffer = new short[bufferSize];
short[] readBuffer = new short[bufferSize];
public void run() {
isRecording = true;
android.os.Process.setThreadPriority
(android.os.Process.THREAD_PRIORITY_URGENT_AUDIO);
int buffersize = AudioRecord.getMinBufferSize(11025,
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT);
AudioRecord arec = new AudioRecord(MediaRecorder.AudioSource.MIC,
11025,
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT,
buffersize);
AudioTrack atrack = new AudioTrack(AudioManager.STREAM_MUSIC,
11025,
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT,
buffersize,
AudioTrack.MODE_STREAM);
am.setRouting(AudioManager.MODE_NORMAL,1,
AudioManager.STREAM_MUSIC);
int ok = am.getRouting(AudioManager.ROUTE_EARPIECE);
Log.d("ROUTING", "getRouting = " + ok);
setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);
//am.setSpeakerphoneOn(true);
Log.d("SPEAKERPHONE", "Is speakerphone on? : " + am.isSpeakerphoneOn());
am.setSpeakerphoneOn(false);
Log.d("SPEAKERPHONE", "Is speakerphone on? : " + am.isSpeakerphoneOn());
atrack.setPlaybackRate(11025);
byte[] buffer = new byte[buffersize];
arec.startRecording();
atrack.play();
while(isRecording) {
arec.read(buffer, 0, buffersize);
atrack.write(buffer, 0, buffer.length);
arec.stop();
atrack.stop();
isRecording = false;
As you can see if the code I have tried using the AudioManager class and its methods including the deprecated setRouting method and nothing works, the setSpeatPoneOn method seems to have no effect at all, neither does the routing method.Has anyone got any ideas on how to get it to play via the earpiece instead of the spaker phone?

View 5 Replies View Related

Android :: Play Raw Audio From C++ Side

Feb 22, 2010

I need to be able to stream audio from a custom file format on the C++ side of the Android system. I am working on porting a custom media player and need to be able to open a custom file and stream audio from it. This is important as I do not think porting the whole player to JAVA is feasible from a performance stand point and moving the audio buffers through the JNI interface I believe will be too slow to keep a decent frame rate. I can handle the video on the NDK side through OpenGL ES, but the Audio I have no idea how to make this happen.

View 2 Replies View Related

Android :: How To Play Audio From Sd Card?

Jul 12, 2010

I need to download audio from web server and I need to save into device memory. Then, I need to play that audio from my application. I know, how to play audio if that is available in res/raw folder. But, I can't able to play audio from SD Card. I am getting following error: ERROR/PlayerDriver(31): Command PLAYER _ SET _ DATA _SOURCE completed with an error or info PVMFErr Not Supported.

View 4 Replies View Related

Android :: How To Play Audio Files One After Other

Jul 20, 2010

I have multiple audio files in the assets directory of my application. When the user clicks a button I want to play those files in a certain order, one after the other. There shouldn't be any noticeable lag between the audio files. What is the best approach to achieve this? I am thinking of using MediaPlayer objects and OnCompletionListeners. But, that would mean I have to create a lot of OnCompletionListeners because I need to know every time which audio file is next. Am I missing something or is there a better approach?

View 1 Replies View Related

Android :: Store Recorded Audio File In SD Card In Emulator?

Feb 27, 2010

i am working n audio recording. i can store the file using file.getAbosolutPath() mehtod. it stores the file in path: /data/data/com.example.audio_demo/files/output.amr i wann store that in SDCARD.iso and how retrive that and play.

View 1 Replies View Related

Sprint HTC Hero :: Memory Card Swapped / Zip File With Stock Folders

Mar 22, 2010

Just got this phone last week, and besides the battery life I'm quite enjoying it. This weekend I was visiting some friends I haven't seen in a long time, we had a few beers and then got a bright idea. My friend has a work phone with an 8GB MicroSD card that he doesn't use. So, we swapped memory cards. Now I'm 4 states away and just now realized that I should have copied the folders onto the new card. Anyone have a zip file with the "stock" folders and info for these phones? I tried searching but it seems I have a rather unique twist to a common issue.

View 3 Replies View Related

Android :: Audio Track Play Music

Sep 6, 2010

I'm an android starter I tused AudioTrack to play music But it just tell me filenotfoundexeception I try to play mp3 wav ogg (all in raw dir) I've no idea where is wrong? here are my code:

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

View 3 Replies View Related

Android :: Using Bluetooth To Play Audio In Car From Epic 4G?

Nov 22, 2010

I am looking for an app that will allow me to play music and audio books to my paired bluetooth car audio system. At the moment I can only use it for phone calls.

View 9 Replies View Related

Android :: Stopping And Play Button For Audio

Apr 22, 2010

I have this problem, I have some audio I wish to play. And I have two buttons for it, 'Play' and 'Stop'.Problem is, after I press the stop button, and then press the Play button, nothing happens. -The stop button stops the song, but I want the Play button to play the song again (from the start) Here is my code:final MediaPlayer mp = MediaPlayer.create(this, R.raw.megadeth);And then the two public onclicks: For playing)
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// Perform action on click
button.setText("Playing!");
try {
mp.prepare();
} catch (IllegalStateException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
And for stopping the track
final Button button2 = (Button) findViewById(R.id.cancel);
button2.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
mp.stop();
mp.reset();
Can anyone see the problem with this? If so could you please fix it. (For suggest)

View 3 Replies View Related

Android :: How To Play Audio In Splash Screen

Jul 30, 2010

How to play an audio during splash screen.

View 2 Replies View Related

Android :: How To Play Streaming Audio / Video From URL

Nov 1, 2010

I am new in Android. I am using android os 2.2. I am trying to play streaming audio and video from url. I don't know what to do for that. after 3 days og googling i come to know that I have to use mediaPlayer and MediaController classes.I had use different differend combination of codes found on internet but not succeed.Can anybody guide me what to do for streaming audio/video playing. What about the UI if we use MediaPlayer or Controller class. is there any thing to related these in xml file of layout.if not then even please tell me what may be the code for that.please help me.

View 2 Replies View Related

Android :: Sdcard Images , Audio / Video Not Reflected In Gallery - Bug In Emulator?

Sep 26, 2009

I have pushed around 10 files of each image(*.png ), audio(*.mp3) and video(*.mp4 & *.3gp) after that I have restarted the emulator and when I open the gallery application I see only a few files being present in sdcard. (in my case 1 video, 2 images and 2 audio clips) .

is this a bug in emulator?

because I have written a piece of code that displays the images/audio/video . But due to above mentioned issue I'm not able to display/play the images.

snippet of implementation is as follows code...

View 2 Replies View Related

Android :: Play An Audio Clip Onto An Ongoing Call

Oct 10, 2010

Is it possible to modify an active call by overlaying a sound track during the call? I looked up the SDK, but couldn't find any api to do this in the documentation. I am trying to investigate the feasibility of playing a previously recorded call/audio clip onto an ongoing call.

View 1 Replies View Related

Android :: Receive And Play MMS Or RTSP Audio Stream?

Jul 2, 2009

does android can recieve and play MMS or RTSP audio stream? or just can address for HTTP stream?? i try for MMS stream,but there is nothing to hear..

View 2 Replies View Related

Android :: To Play Audio At 1.4 Times Normal Speed

Aug 2, 2010

I need to play mp3 at 1.4 (or other) times the normal speed. How can I do that?

View 1 Replies View Related

Android :: Can Media Player Play .wav Fomat Audio?

Feb 16, 2009

I tried to play a piec of 16-bit .wav audio file, no sound came out from my earphone, but .mp3 file would be OK. Do any one else have this kind of experience? This is the code: player = MediaPlayer.create(this, R.raw.test); // I put test.wav in /res/raw player.start();

View 4 Replies View Related

Android :: Mediaplayer To Play Live Streaming Audio

Nov 8, 2010

In my music app, i would like to play live streaming like radio broadcasting with mediaplayer as Mediaplayer mp = new Mediaplayer(); mp.setDataSource(LiveStreamingURL); mp.prepare(); mp.start(); but after playing for few seconds it is stopped. I dont know how to overcome it. Give me your suggestions for this.

View 3 Replies View Related

Android :: Play Audio File From Assets Directory

Jul 20, 2010

when I run this code, it starts playing all the audio files in the assets directory, in alphabetical order instead of just playing the audio file I requested. What am I doing wrong? Is there a better way to play audio files from the assets directory?Is there a difference between keeping audio files in the assets directory and keeping them in the res/raw directory? Besides the fact that they don't get ids if they are in the assets directory. If I move the audio files to the res/raw folder then I have a problem with reusing MediaPlayers because there is no id parameter for setDataSource(). I can't find a good guideline for handling this kind of problem.

View 1 Replies View Related

Android :: Is It Normal To Play An Audio During Phone Call?

Mar 15, 2009

When you pick up the call and switch the screen to MediaPlayer to play an audio, it is able to be heard from handset (receiver). Thus, you can hear the far-end voice and your local music at the same time. Is it a normal behavior? Android seems not to have the mechanism to let Mediaplayer to remember its status (to keep music pause or mute?) in the phone call. Or this is a normal design for notification sounds, such as a call- waiting sound? Is it possible to have an secondary gain feature like windows mobile in the future?

View 7 Replies View Related

Android :: Possible To Use Media Player To Play Streaming Audio?

Mar 21, 2010

The dev guide suggests this
MediaPlayer mp = new MediaPlayer();
mp.setDataSource(this, Uri.parse("http://wamu-1.streamguys.com:80"));
mp.prepare(); mp.start();
I can't seem to get it working though.
I'm getting "java.io.IOException: Prepare failed.: status=0x1"

View 6 Replies View Related

Android :: Where To Put 45 MB Files / Play List Of Audio In My Application

May 29, 2009

I am new to android and i need to play list of audio files in my application. but where can i put all the audio files as its large in size around 45 MB ? and how can i access it?

View 6 Replies View Related







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