Hi,

I noticed in your post that you were successful in building the new
sdk. I have been trying to accomplish the same thing. Could you send
me the jar that you compiled or maybe only the cupcake branch source
code?

Cheers,
Earlence


On Jan 19, 9:18 pm, "Breno T. Minzon" <breno.min...@gmail.com> wrote:
> Hey Dave,
>
>     I downloaded the android source code and this already has Cupcake branch
> merged into main. I compile and made the sdk ("make sdk") with success. But
> now i need the eclipse plugin compatible with this version of this "custom"
> sdk. Note that i just downloaded and compile. I need to work with audio
> streaming, and in our prototype we walked around, but now, we really need
> this feature. So i'm trying to use it. I looked the source, and, apparently,
> Cupcake solves our needs...
>      I try this 
> link,http://review.source.android.com/5290/diff/201/z474cb3132ea0f2114f9e5...,
> but when i import the projects into my workspace, many compile errors
> appear. I think that there is a lot of new functions and classes, that
> eclipse plugin doesn't detect...So, how can i build successfully the eclipse
> plugin?
>
> Thanks a lot
>
> Breno
>
> On Jan 17, 5:44 am, Dave Sparks <davidspa...@android.com> wrote:> OK, now I 
> see where you going with it. :)
>
> > What you want is coming in Cupcake. There is astreaminginterface
>
> foraudioinput and output that gives you an array ofaudiosamples you
>
> > can do your signal processing on.
>
> > If you need something for SDK 1.0, there is a MediaRecorder function
> > called getMaxAmplitude(). You should be able to get what you want by
> > writing theaudiofile to /dev/null and calling into getMaxAmplitude
> > periodically. Take a look at the source code for SoundRecorder on
> > android.git.kernel.org.
>
> > On Jan 16, 3:20 pm, "Matt Flax" <flat...@gmail.com> wrote:
>
> > > we are implementing a sound level meter. For privacy reasons, we don't
> want
> > > theaudiolying around on the disk.
>
> > > We could do it on the fly without recording to disk, however I don't
> think
> > > that is possible with the sdk ... is it ?
>
> > > Matt
>
> > > On Fri, Jan 16, 2009 at 12:16 PM, Dave Sparks <davidspa...@android.com
> >wrote:
>
> > > > I am pretty sure that won't work. Why do you want to record a bunch of
> > > > smallaudiofiles without dropping samples?
>
> > > > On Jan 14, 7:52 pm, flatmax <flat...@gmail.com> wrote:
> > > > > Hi there,
>
> > > > > Has anyone managed to recordaudioto small files without dropping
> > > > > samples between ?
>
> > > > > perhaps it is possible to use two recorders which toggle between
> > > > > recording states ... when on is recording, the other is priming and
> > > > > waiting to record ...
>
> > > > > Something like :
>
> > > > > //declare two recorders
> > > > > MediaRecorder recorder1 = new MediaRecorder();
> > > > > MediaRecorder recorder2 = new MediaRecorder();
>
> > > > > /// continuously prime, start and stop the two streams so one is
> > > > > always capturing ...
>
> > > > > //prime and start recorder1 - this is the loop roll in
> > > > > recorder1.setAudioSource
> > > > > recorder1.setOutputFormat
> > > > > recorder1.setAudioEncoder
> > > > > recorder1.setOutputFile
> > > > > recorder1.prepare
> > > > > recorder1.start
>
> > > > > while (1){
>
> > > > > //prime and start recording from recorder2
> > > > > recorder2.setAudioSource
> > > > > recorder2.setOutputFormat
> > > > > recorder2.setAudioEncoder
> > > > > recorder2.setOutputFile
> > > > > recorder2.prepare
>
> > > > > //wait a certain ammount of time to allow capture
> > > > > sleep
>
> > > > > recorder2.start
>
> > > > > recorder1.stop
> > > > > recorder1.reset
>
> > > > > //prime recorder1
> > > > > recorder1.setAudioSource
> > > > > recorder1.setOutputFormat
> > > > > recorder1.setAudioEncoder
> > > > > recorder1.setOutputFile
> > > > > recorder1.prepare
>
> > > > > //wait a certain ammount of time to allow capture
> > > > > sleep
>
> > > > > /// switch recorders
> > > > > recorder1.start
>
> > > > > recorder2.stop
> > > > > recorder2.reset
>
> > > > > }
>
> > > > > recorder1.release();
> > > > > recorder2.release();
>
> > > --http://www.flatmaxstudios.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to