Android :: Difficulty Of Making Low Latency Audio Apps In Phone?

Apr 12, 2010

Despite everything I have read about the difficulty of making low latency audio apps in Android, I am giving it a shot. To start, I loaded each note in an octave into a SoundPool, and then looped through each note that was to be played on that beat and called play(). This didn't even come close to being accurate enough for me, and got especially bad if a lot of notes were being played at once.

From what I read, the only way to do something like this is to mix the audio yourself, though I am not entirely sure how to go about this. My initial thought is that for each beat, I could precompute the sound the sound that is to be played (i.e., combine the wav's), and then pass that stream to an AudioTrack when it is time to be played.

Are there any good examples out there for how to mix audio like this, or libraries I could use to do this for me? How have coders of other music apps dealt with this?

Android :: Difficulty of making low latency audio apps in phone?


Android :: Low Latency Audio Api?

Sep 19, 2009

What are my options for playing simultaneous audio on an Android device with the least amount of latency? Am I going to get anything half decent out of the canned SDK, or is that asking too much? The documentation claims that the SoundPool class is capable of playing multiple sounds simultaneously with relatively good performance, but after running some tests in the emulator and on a physical device it seems pretty weak. Is there maybe a trick to it, or do I have to go to a much lower level api for this kind of thing? I've tried using a single sound pool with multiple samples loaded, and I've tried multiple sound pools each managing a single sample. I'm preloading everything, so that when I attempt to play back I have no additional code being executed other than the call to SoundPool.play().

View 2 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 :: 3434 (audio Latency) - Music Applike NanoStudio For IPhone

Sep 29, 2010

This might not be a big deal to most but today, I went to the Android market looking for a music app, something like NanoStudio for iPhone. I found a lot of 2nd rate loop creation synth nonsense. After trying different free versions of paid software I asked myself "why are there no good music apps for Android?"

I emailed the creators of NanoStudio to ask if there are any plans to release an Android version of their software. here is the reply: "Not until they get their act together with audio latency, no. Shame really because NanoStudio's written to be cross platform" This greatly disappointed me. I am a music producer going on 10 years (hip hop, Trip hop, Electronic, etc..) so you can understand my interest in this issue. iphone, iPod have amazing music apps of this sort. Android has nothing close.

View 12 Replies View Related

Samsung Vibrant :: Audio Latency (3434)

Oct 10, 2010

If the Mods decide to delete this and direct you to the OP then thats fine. I just want to spread awareness if this issue. This might not be a big deal to most but I went to the Android market looking for a music app, something like NanoStudio for iPhone. I found a lot of 2nd rate loop creation synth nonsense. After trying different free versions of paid software I asked myself "why are there no good music apps for Android?"

I emailed the creators of NanoStudio to ask if there are any plans to release an Android version of their software. here is the reply: "Not until they get their act together with audio latency, no. Shame really because NanoStudio's written to be cross platform" This greatly disappointed me. I am a music producer going on 10 years (hip hop, Trip hop, Electronic, etc..) so you can understand my interest in this issue. iphone, iPod have amazing music apps of this sort. Android has nothing close.

View 2 Replies View Related

Android :: Want Music Making Apps For Phone?

Jun 24, 2010

Does anyone know of any good music making apps for android? This is one thing I miss about my iPhone, there are a lot of very powerful music creation apps available. Anyone who's used Beat maker knows what Im talking about. So any suggestions guys?

View 2 Replies View Related

Android :: Latency When Getting Sensor Data From Phone?

Mar 9, 2010

I am working on a project using HTC magic which requires the data from the electronic compass, including both the accelerometer and magnetic sensor. But I find that there is a significant latency between the move of the phone and the trigger of the sensorChanged event. In other word, the acceleration and magnetic data obtained from sensor are updated about half of a second after my motion. And I have several questions about the problem as follow. Are the orientation data computed by the acceleration and magnetic data? Or are there a physical sensor for orientation? Does the latency result from the android API (using the event) or the physical limitation of the electronic compass? It is said that the model of the electronic compass is AK8976A from Asahi Kasei. Does anybody have the datasheet or know the frequency of the sampling? Any idea to improve the real-time experience?

View 1 Replies View Related

Sprint HTC Hero :: Need Tutorial For Making Phone Apps?

Oct 1, 2010

This is probably the wrong place to ask this, but has anyone come across any GOOD tutorials for making android apps? I have app inventor, but I want to make an app for the market.

View 2 Replies View Related

Android :: Difficulty Resuming SurfaceView

Apr 24, 2009

I am stuck.My main activity creates and starts a SurfaceView.My app needs to access a listview via the options menu to change properties of the items shown in the view.Two strange things occur:

1.) When I scroll the listview quickly, the list sometimes gets farklempt.Words overlap each other.

2.) When I select the item and the app returns to the main activity, the thread is no longer alive.

If someone out there can offer help I will post the code.This will take a little effort.My code is loosely based upon LunarLander and the GLSurfaceView examples.If there is a good example (more recent example) someone can point me to, that would be boss.

View 8 Replies View Related

Android :: What Is Keeping Retailers From Making Apps?

Dec 9, 2009

It seems like more and more mainstream retailers are making apps for the iPhone, whether it be Starbucks, Pizza Hut, UPS, etc. When do they start making these apps available to Android users. The Droid has sold almost 1,000,000 units in a little over a month. With several phones slated for 10' do you think that this will happen?

View 32 Replies View Related

Samsung Behold 2 :: Want Tutorials For Making Android Apps?

Mar 21, 2010

Does anyone know some places that have some good books or video tutorials or just generally good knowledge of creating android apps? If someone can hook me up with some info on at least what I need to know to create android apps that would be very appreciated.

View 2 Replies View Related

Android : Live Stream Latency - Delays In VLC

Apr 13, 2010

We are developing an Android video conferencing application. After examining some already existing live-stream applications , we came to the conclusion that all or almost all existing applications have a delay of 3 to 10 seconds. The application we are developing was tested receiving a video stream on the Android device and the same video stream on VLC at the same time.The result of the test is that VLC shows the same part of the video 2 to 10 seconds earlier than our Android application on the phone(HTC hero) depending on the rtsp link used. we haven't found what is the main cause of the delay and also dont know if it is possible to reduce that delay. In our case, as it comes to video conferencing, the delay should be lower than 2 seconds at least. Do you guys have some information about the cause of the delay or even how to reduce it?

View 5 Replies View Related

Android : Latency Due To Garbage Collection On On PrevFrame

Jun 6, 2010

I'm writing an Augmented Reality codes that should works in realtime,

But the VM's garbage collection hinders my program's performance.

I checked my program's execution time for each in OnPrevFrame(byte[], Camera)

and it execution time increases from around 50ms to 120ms at just after each garbage collection.

I copied parts of logs below. (local time is just before and after of signal processing, and global time is time stamps for every onPreviewFrame() calling )Also I executed onPreviewFrame without any signal processing on it, but

the garbage collection is also carried showing debugging message around 60ms it spends for memory release.

Is this garbage collection come from releasing byte[] yuvs image data? ( i uses 320x240 thumb nail )

then this clearly comes from Java's limitation, so there will be no hope for improvement unless

I found a way to directly access camera device? do you think this is feasible? Hope listen to others' comments.

View 3 Replies View Related

Android : Latency On Mobile Networks / GPRS - 3G?

Jul 8, 2009

I am planning to give mobile phone development a shot and was thinking about making some simple multiplayer games. I know latency over local wifi is probably fine but what are the issues with latency over GPRS/3G?

I've searched and the best I've seen is someone saying it was 'high', without presenting any concrete numbers. I suppose latency fluctuations are important as well - does anyone have any info on this?

View 2 Replies View Related

General :: Making Google Hangout Apps To Work With Android?

May 13, 2013

Is there a way to make the hangout apps (apps inside the hangout) work with android devices?

View 1 Replies View Related

Android :: Difficulty Displaying Alert Dialog - Why Does This Code Force Close App?

Jul 18, 2010

I'm very new to Android so I've been working primarily with information from the android developer's page. Everything was going great until I added the code from the alert dialog section. The code they give alone gives me an error when I try to run it on the last line, saying I must initialize dialog, but I feel like I'm getting the NullPointerException no matter what the case is.If I don't instantiate "dialog" to "null" at the beginning, I cannot run the program. I'm not even trying to do anything crazy yet, any help would be great because I'm having alot of trouble trying to figure out what exactly this code is trying to do.

View 2 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 :: Apps - Making Louder

Jul 15, 2010

Is there any free or paid apps to make the Dinc louder the basic player is not loud enough for me as my blackberry was, I don't want to spend big bucks for headphones..

View 1 Replies View Related

Sprint HTC Hero :: Anyone Else Having Difficulty With Certain Keys

Oct 14, 2009

For some reason my hero has some difficulty with certain areas of the screen when pressing on those areas in keyboard mode. When in vertical keyboard mode the l, p and backspace keys take multiple presses to get the letter to enter. I do not know if this is something to do with the capacitative touch screen or is perhaps a defect in the device. Has anyone else had this issue?

View 5 Replies View Related

HTC Incredible :: Rooted - Difficulty Flashing Radio

Aug 20, 2010

Question, obviously asked in several previous threads, but I'm unable to resolve the next issue at hand with that data. When I power on, and hit hboot, I'm still seeing S-On, yet if I log into abb shell, su, I get "#", as well as now having the icon for "Superuser Permissions". Used both unrEVOked3 and forever in this process.

I've attempted to install the radio update "PB31IMG.zip" via root of SD card. I'm able to see / install it, yet baseband is still showing 1.00.03.04.06. I have W7, and have the option to "Hide extensions for known file types" off (Can't stand not seeing exactly what files are what). What am I missing? I've seen that others have had to do the "*22899 then *228 option 2", yet If it doesn't show it as being a valid install, I'm hesitant to try and reinstall it.

View 5 Replies View Related

Games :: Flick Defense Difficulty Balancing

Jul 28, 2010

Balancing our newest game, Flick Defense. Many people have been giving us mixed reports on the difficulty, specifically the arrow angles. We would love to get some feedback! The Demo version is free to download!

View 3 Replies View Related

HTC Desire : Developers Making Apps To Highest Resolution?

Aug 6, 2010

Is it just me or are 99% of applications are very low resolution and all the pictures look very dull and fuzzy.

The new facebook update looks crisper, so the phone cleary has the capabilities but why aren't developers making apps to the highest resolution?

View 2 Replies View Related

General :: Making Market Apps Visible On Stock ROM?

Mar 11, 2012

How to make apps from market visible on the stock rom?

E.g: I flash-ed Cyanogenmod 7 nightly and it was show me a lot of apps which was no was in stock rom ( dead space apperance in cyanogenmod but in stock rom no)

View 9 Replies View Related

HTC Droid Eris :: Swype / Difficulty In Loop On A Letter?

Jun 18, 2010

I upgraded to the new beta of swype and since then have found one minor issue. when i try to loop on a letter to do a double letter like the t in the word letter, i have difficulty doing so. I have to make a very large loop that only crosses over the letter, rather than looping on top of it like i used to be able to do. i'm not sure if this is just something to do with a setting that got changed or if it is a bigger issue.

View 14 Replies View Related

Motorola Droid :: Use GV Exclusively - Difficulty Integrating SMS - Incoming Calls

Dec 9, 2009

Like to utilize my new GV number, but the difficulty integrating SMS and incoming calls with the built-in contacts program has me reluctant.

View 6 Replies View Related

General :: Making / Answering Phone Calls From Computer Routed Through Android Phone?

Dec 31, 2013

i'm looking for a way to make phonecalls with my computer+Logitech G230, through my android device (Jiayu G4 Advanced)

The Remotecall app in Playstore still requires me to pick up my phone in order to actually hear something..
its got all the other features i'd like to use: answer calls from my PC, make calls from pc (from , for example, the outlook contactlist), call Log capability; but i have to pick up my phone when i probably can just hear it through my headphone (connected to PC)

I think i should be looking for some sort of voip server on my phone and let my computer act as voip client, but i'm not entirely sure about that.

View 3 Replies View Related

Android :: Making Phone Call Using SDK 1.6

Oct 5, 2009

I am a total newbie in Android and want to develop an application which need to make phone call using the API. I googled around and find that the open SDK didn't support making phonecalls. All the function required to make phone call have been put inside com.android.internal.telephony, which is an internal APIs.I just wonder if there is any methods or alternatives API that I can make use of.

View 2 Replies View Related

Android :: Making Changes To A Built-in Android Apps

Oct 9, 2010

I've pulled and compiled the latest Android tree. Now I want to make changes to the Android's Browser application.

The environment in Eclipse is already set up. I tried creating the project by selecting "Build project from existing source", but it fails to build because it uses libraries not in the SDK.

Does anyone know how to import the missing source in order to build the Browser app, or even better, how to just copy the source into a separate project and use it like I was developing a regular application?

View 1 Replies View Related

HTC EVO 4G :: Can Android Apps Share Access To Audio Output

Sep 28, 2010

Can android apps share access to the audio output? I sometimes use Maps Navigation, which will give audible turn by turn instructions. I plug the EVO to my car stero using a patch cord so that I hear the instructions over my radio.

However, if I'm using another application that outputs audio, like Pandora or the music player, they go silent as soon as Maps speaks an instruction.

What I would like is for the apps to be able to share the audio output with some kind of priority set, so that Pandora would pause momentarily while Maps spoke an instruction and then resume.

Is that possible?

View 4 Replies View Related

Android :: Making Phone Vibrate Even If Set To Silent

Jul 25, 2010

I am trying to create something similar to Blackberry Messengers "PING" function. I want certain people to be able to make my phone vibrate even if I have placed the phone on silent mode. I have tried to use Setting Profiles to do this, by creating a profile (let's call it "Profile1") that turns on notification vibrations. I also created a rule that would activate Profile1 if I received a text message from someone containing the phrase "PING".

But when I test this out, the Profile1 never activates. As I've messed around with the rule, I've also tried having the rule activate based on the receipt of any text message (i.e., leaving the "*" in the contents field), and that does not work either. Any suggestions for those of you familiar with setting profiles, or if you know of another application? I have an EVO 4G.

View 2 Replies View Related







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