I think you would have to get all the components that want to share audio 
recording responsibilities to be coordinated using some other mechanism.

Doug

On Tuesday, March 20, 2012 2:58:41 AM UTC-7, smichak wrote:
>
> OK - so sharing is impossible. 
>
> My follow-up is therefore: Is it possible to open the audio input 
> device in a manner that would make it forefit or yield the resource if 
> another application requests it? Again - I am asking this in the 
> context of the OpenSL implementation. I have seen that OpenSL objects 
> are assigned priorities and can be made preemptable - I wonder if 
> that's what I'm looking for. 
>
> On Mar 20, 9:46 am, Doug <[email protected]> wrote: 
> > What do you suppose will happen if 5 processes each ask for audio 
> recording 
> > with 5 different combinations of recording frequencies and sample sizes? 
> > Is Android obliged to resample audio to those requested parameters for 
> each 
> > app?  What about 10 apps?  That's a lot of resampling. 
> > 
> > This is the reason why only one app can record audio at a time. 
> > 
> > Doug 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Sunday, March 18, 2012 10:14:05 AM UTC-7, smichak wrote: 
> > 
> > > Hi, 
> > 
> > > I am writing an application that runs as a background service 
> > > recording and analyzing audio samples. I have noticed that it is 
> > > impossible to use the SDK's AudioRecord class for accessing the 
> > > microphone simultaneously by more than one application. I was 
> > > wondering whether it would be possible to do that using the Native 
> > > Audio API, i.e. OpenSL ES. Can anyone provide insight on why this may 
> > > or may not work? 
> > 
> > > Micha

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to