[android-developers] Re: Using the AudioRecord API

2009-05-19 Thread benmccann
.read(buffer) > 0) { doSomething(buffer) } When I've done the latter I get buffer overflow exceptions. On May 15, 3:51 pm, Dave Sparks wrote: > You need to call the read() method. > > On May 15, 3:15 pm, benmccann wrote: > > > Any ideas? > > > Thanks, > >

[android-developers] Re: Using the AudioRecord API

2009-05-15 Thread benmccann
Any ideas? Thanks, Ben On May 15, 1:02 am, benmccann wrote: > Hi, > I'm trying to figure out how to use theAudioRecordclass.  I created > a callback with a logging message, but don't ever see it called.  Do > you see anything wrong with what I'm doing?  Do you have

[android-developers] Using the AudioRecord API

2009-05-15 Thread benmccann
Hi, I'm trying to figure out how to use the AudioRecord class. I created a callback with a logging message, but don't ever see it called. Do you see anything wrong with what I'm doing? Do you have an example of how to use the API? Thanks, Ben import android.media.AudioFormat; import android.

[android-developers] AudioRecord

2009-05-12 Thread benmccann
Hi, I'd like to use the AudioRecord API, but it's not clear to me how it should be called. I put a call to the logger in the listener callback, but don't see an message logged anywhere. Any pointers? Thanks, Ben import android.media.AudioFormat; import android.media.AudioRecord; import androi

[android-developers] Recording audio with AudioRecord

2009-05-09 Thread benmccann
Hi, I'm having a hard time using the AudioRecord class. I put some logging in the callback, but never see any output in the logs. Any idea what I'm doing wrong? Thanks, Ben import android.media.AudioFormat; import android.media.AudioRecord; import android.media.MediaRecorder; import android.u

[android-developers] Re: audio codec

2009-04-27 Thread benmccann
The 1.5 SDK includes "Raw audio recording and playback APIs". I think I'd take a look at http://developer.android.com/reference/android/media/AudioRecord.html I'm not real sure how AudioRecord and MediaRecorder work together, if at all. It looks like maybe AudioRecord is closer to the native ca

[android-developers] Re: Getting Raw Data from AMR-NB 3GP file

2009-03-18 Thread benmccann
I've figured out how to extract the AMR audio from the 3GP file: http://www.benmccann.com/dev-blog/extracting-amr-audio-from-android-3gp-files/ On Mar 14, 9:16 pm, benmccann wrote: > I played with ISO parser a bit more today, and made some progress.  I > made a single 3gp audio reco

[android-developers] Re: Getting Raw Data from AMR-NB 3GP file

2009-03-14 Thread benmccann
INFO: Unknown box found: nmhd 0x6e6d6864 parent is: minf Mar 14, 2009 9:08:16 PM com.coremedia.iso.BoxFactory createBox INFO: Unknown box found: mp4s 0x6d703473 parent is: stsd On Mar 13, 10:39 pm, benmccann wrote: > Thanks Warwick.  That's basically what I got from Wikipedia, though &g

[android-developers] Re: Getting Raw Data from AMR-NB 3GP file

2009-03-13 Thread benmccann
Thanks Warwick. That's basically what I got from Wikipedia, though I'm still not sure the advantage a media container provides. It enables streaming or has some other advantage? I checked out and built the IsoParser, but can't figure out what to pass to getTrack(long trackId). I'm not familiar

[android-developers] Getting Raw Data from AMR-NB 3GP file

2009-03-13 Thread benmccann
Any ideas on the easiest way to get the raw data from a file recorded by the MediaRecorder class? I am going to have to pull up the RFC and parse the file myself or is there some existing Java/Android class I can use that recognizes the file format and will give me access to the raw decoded data?

[android-developers] Re: Recording Audio

2009-03-11 Thread benmccann
Finally got it figured out: http://www.benmccann.com/dev-blog/android-audio-recording-tutorial/ On Mar 9, 11:37 am, benmccann wrote: > I'm still feeling directionless when it comes to what > MediaRecorder.setOutputFile(String path) is expecting.  Is it a > relative path?

[android-developers] Re: Recording Audio

2009-03-09 Thread benmccann
ns if we specify a file path which already exists - will it override the existing file or will it bomb out? On Mar 7, 10:30 pm, benmccann wrote: > jdl, I'd be happy to post my code, but I still don't have a working > example.  I upgraded to the 1.1 SDK today in hopes that it fix

[android-developers] Re: Recording Audio

2009-03-07 Thread benmccann
Runtime(185): at com.benmccann.android.hello.HelloAndroid$1.onClick(HelloAndroid.java: 31) On Mar 6, 1:38 pm, benmccann wrote: > Bugs already > exist:http://code.google.com/p/android/issues/detail?id=450&q=media%20docum...http://code.google.com/p/android/issues/detail?id=1256&q=med

[android-developers] Re: Recording Audio

2009-03-06 Thread benmccann
e data files: > > > >http://developer.android.com/guide/topics/data/data-storage.html > > > >http://developer.android.com/reference/android/content/Context.html#g...) > > > > On Thu, Feb 26, 2009 at 2:40 PM, benmccann > > > wrote: > > > > >

[android-developers] Re: Recording Audio

2009-02-26 Thread benmccann
ivate data directory / > data/app-private/app-package. I believe your working directory is set > to this directory by default. This is onboard flash, so it will > survive the user ejecting an SD card. However, there is a limited > amount to go around, so you don't want to store

[android-developers] Re: Recording Audio

2009-02-25 Thread benmccann
x.html On Feb 24, 8:03 pm, Dave Sparks wrote: > setOutputFile() expects a path to where you want the file stored. > > You can take a look at the source to SoundRecorder in the open source > tree for some working code: > > http://android.git.kernel.org/?p=platform/packages/apps/S

[android-developers] Recording Audio

2009-02-24 Thread benmccann
Hi, I'd like to create an audio recording in Android. (Actually, I just want access to the mic without recording it, but it seems that's not supported so I'll have to create a recording and tail the file). I'm having a very hard time getting started. Mostly I'm just hoping that someone from Goog

[android-developers] Re: Recording audio stream

2009-01-26 Thread benmccann
I'm happy to hear future releases will support the ability to stream audio being recorded. Any ETA on this? On Dec 30 2008, 9:58 am, Dave Sparks wrote: > It's probably not really streaming audio. Some people are working > around the issue by "tailing" the file as it is being written. > > On De