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.

Android :: Play raw Audio from C++ side


Android :: Server-side AAC Audio ?

Oct 30, 2009

As I understand it, Android will only play AAC format audio if it's encoded as MPEG-4 or 3GPP.

I'm able to play AAC audio encoded as M4A when it's local to the app, but it fails when obtaining it from a server.

The following works, as the m4a file is held locally in the res/raw directory.

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

The following doesn't work. (But does with MP3's).

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

Can anyone shed any light on why it fails when the m4a audio file is not local?

Here's (some of) the error...

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

I'm targeting SDK 1.6.

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

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

Android :: Write App To Make Certain Text To Run Slowly From Right Side Screen To Left Side?

Nov 3, 2009

Now i want to write an application to make a certain text to run slowly from right side screen to left side screen and rotate to repeat. How can i do that?

View 9 Replies View Related

Android :: Textview On Left Side With Button On Right Side Non Absolute Values

Aug 10, 2010

I'm trying to get my textview to hug the left side of the screen while the button hugs the right side (and if possible just for ocd sake have the text view center itself vertically to be in line with the button) but not do it using absolute values.I thought layout_gravity took care of what I'm trying to do but apparently not.

View 2 Replies View Related

Android :: Two Buttons Side By Side To Fill Width Of Screen?

Sep 6, 2010

I have 2 buttons side by side in RelativeLayout (170dip each) but in landscape view, they are too narrow - I want to increase their widths automatically for landscape. I need a 'fill_parent' for two buttons at once kinda thing.

View 5 Replies View Related

Android :: Accelerometer Shake Side-to-side Detection

Jul 31, 2009

I'm developing an app and i need to detect when the user shakes the phone from side to side , that means just along one axis (in this case X).I want to know when the user shakes the phone to the left and when to the right, the problem is that my code does not detect shaking but tilt, i have tested this code and it works when i tilt the phone to left or to the right, but not when a shake it from side to side (no matter the orientation of the phone).

View 2 Replies View Related

Android :: Battery Indicator For Side By Side Status

Sep 20, 2010

I was going to contact the dev to see about a fix but it's not showing in the market anymore. I installed Battery Indicator just so I could put two side by side and show the difference. They both do the same exact thing so I'll just stay with the Indicator one.

View 1 Replies View Related

Android :: Fascinate And Droid X Side By Side Pics

Jun 30, 2010

I figured the X screen would only look a tad bigger than the 4.1" Fascinate. But side by side the X looks like so much more screen real estate.Hands-on with the Verizon Fascinate | Android Central

View 27 Replies View Related

Android :: Place Two Buttons Side By Side

Sep 5, 2010

my buttons go one under the other, but I want them side by side.How do I place two buttons side by side?

View 8 Replies View Related

Android :: 1.5 And 1.6 Versions Of SDK Sitting Side By Side

Sep 25, 2009

i read the migration notes for 1.6 and I could not tell if 1.5 and 1.6 can co-exist side by side.i need to build applications for both 1.5 and 1.6, and i only have one build machine.other than changing my PATH variable, are there any other gotchas? especially for an automated build process which will need to build images for both platforms.also, i am a bit concerned about updating the ADT plugin. if I do that (update the ADT plugin), will that screw up my development on/for 1.5?

View 5 Replies View Related

Android :: Where Can I Find Side-by-side App Comparisons?

Jul 3, 2010

It seams for every kind of important function, there are at least 2-5 apps.With all the websites and forums there does not seem to be a place where Android apps are compared directly against each other.I'm constantly trying to find the "best in class" app before I download one of them.I'm trying to avoid downloading and removing a bunch of them in a "trial and error" fashion.I am amazed that these types of comparisons have not been done and documented a thousand times over.

View 9 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 :: 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

HTC EVO 4G :: Will Two Evos Speed Tested Side By Side Give Same Results?

Sep 25, 2010

So will two identical phones on the same carrier give the same results when speed tested side by side?Stock EVO running 2.2

View 5 Replies View Related

General :: CM 10 - How To Add Dual Panel (side By Side) In Email And Settings

Dec 19, 2012

I am running an lg optimus 3d (LG P-920) on CM10 nightly 19/12 (todays) and i installed a rom the other day (pacman) and it had a neet feature in the settings page where it had dual panel view kinda how facebook works. but anyway on the cm10 official it doesnt have it and i been looking around and seen it on email too and it looks reallly nice.

I was wondering how i would do this myself to any app that i choose

I think what its doing is forcing tablet UI in certain apps..

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

HTC Droid Eris :: 1.5 And 2.1 Leak / Side-By-Side Comparisons

Mar 13, 2010

Opinions aside, it seems useful to have some lists developed in here with actual comparisons of the relative merits of each of 1.5 and the 2.1 leak.I'm hoping the thread does not degenerate into allegiances for one or the other so much as real data, although the experience users are having is part of the equation and should be commented on.2.1 has this or that, but 1.5 does not. 1.5 is more stable in this area, but 2.1 is not. .. etc.

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







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