[android-developers] Re: Record audio problem on the LG Ally

2010-08-26 Thread melo
Hi ~ I'm an android starter I used MediaRecorder and MediaPlayer to record voice via mic before This time,I try AudioRecord and AudioTrack to record voice But when I launch the program, it's forced to be shut down I've no idea where is wrong? here are my code ~ Could you tell me why? TKS in advanc

[android-developers] Re: Record audio problem on the LG Ally

2010-08-13 Thread skooter500
Jeff I did some benchmarking first. I have versions of my algorithms in both C++ and Java. I sample at 22KHz for 12 seconds and perform an SFTF on 2048 sample frames with a 75% overlap in order to transcribe what the user has played on their instrument. I do some other stuff on the spectrum to fig

[android-developers] Re: Record audio problem on the LG Ally

2010-08-12 Thread Jeff Knaggs
I'm curious, you do a copy with C++; did you do this because you assumed/thought you needed the extra speed boost? I.e., not because you're then going to use a bunch of other (already written ;-) C++ to process the data). If the answer is YES -- "for speed," did you do any benchmarking to see if

[android-developers] Re: Record audio problem on the LG Ally

2010-08-11 Thread skooter500
I solved it I am pleased to report and my app now works on all Android phones Nexus One's LG's, HTC etc: At last I can answer a question on this forum instead of just posting them :-) The solution it seems is to request chunks of data from the record device of size minBufferSize which you get usin

[android-developers] Re: Record audio problem on the LG Ally

2010-08-11 Thread Gene R.
I too am experiencing the same exact problem. I'm using AudioRecord and my app works fine on my Nexus, Behold II, Cliq XT, Droid and Droid X. LG Ally users (and Samsung Moment users) are reporting crashes. I'm locked in at 8khz sample rate. It would be useful to have a logcat from an LG Ally to

[android-developers] Re: Record audio problem on the LG Ally

2010-08-10 Thread Open
I am having a similar problem with one of my apps. On all other phones I am able to record using MediaRecorder, but on the LG Ally users are reporting crashes. Did you solve this issue? On Aug 2, 10:56 am, skooter500 wrote: > Giampaolo > > Thanks for yoru reply, but that's definitely not the pr

[android-developers] Re: Record audio problem on the LG Ally

2010-08-02 Thread skooter500
Giampaolo Thanks for yoru reply, but that's definitely not the problem. In fact what you suggest is what I already do. doInBackground is only called once and System.gc gets called once before the recording starts. The call audioRecord.read blocks until the appropriate number of bytes is read. Ive