Home How I can get the voice call audio data
Reply: 0

How I can get the voice call audio data

Charlie Yang
1#
Charlie Yang Published in 2017-12-05 03:22:26Z

I want to manipulate the voice call data. It seems that the data is handle by the hardware. I try to access it by switching triggers(yet I do not know if related triggers exit) to make the hardware passing audio data to software. After some effort, I find a interface setForceUse() and think it may helps. The second param of this function can be:

AUDIO_POLICY_FORCE_BT_CAR_DOCK,
AUDIO_POLICY_FORCE_BT_DESK_DOCK,
AUDIO_POLICY_FORCE_ANALOG_DOCK,
AUDIO_POLICY_FORCE_DIGITAL_DOCK,
AUDIO_POLICY_FORCE_NO_BT_A2DP, /* A2DP sink is not preferred to speaker or wired HS */
AUDIO_POLICY_FORCE_SYSTEM_ENFORCED,
AUDIO_POLICY_FORCE_HDMI_SYSTEM_AUDIO_ENFORCED,
AUDIO_POLICY_FORCE_ENCODED_SURROUND_NEVER,
AUDIO_POLICY_FORCE_ENCODED_SURROUND_ALWAYS,

Q1:I just want to know the meaning of these params.

Q2:Any suggestions that help to accomplish my task will be appreciated.

I am building my own android ROM. So it is just ok to modify the system source files.

Thanks

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.307905 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO