tinyalsa_hal determine caller

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

tinyalsa_hal determine caller

461 Views
mmaitland
Contributor I

I have a situation where the HAL can be called on by Android or through a proprietary class.

I'd like to be able to figure out who made the call since I need to be able to mute the android stream if there exists an open stream from the proprietary caller.

How might I accomplish this?

0 Kudos
Reply
1 Reply

454 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

 

The problem is related \frameworks\base\media\java\android\media\AudioTrack.java.(You better build a sourceinsight project to insert code)

The function you may use is play()->startImpl(),when you using sourceinsight to research AudioTrack.java,you will know the answer.

 

BR

Zhiming

 

0 Kudos
Reply