Wednesday, March 21, 2012

[android-developers] Re: Is it possible to open an Audio Recorder by more than one app using OpenSL?

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 <beafd...@gmail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate