How to detect input data through the audio jack?

前端 未结 4 1076
耶瑟儿~
耶瑟儿~ 2021-01-31 06:26

I know that some devices headphone ports (maybe all of them? any reference here would be good) have 3 channels, for stereo sound and microphone. So I was wondering if it\'s poss

4条回答
  •  余生分开走
    2021-01-31 06:57

    According to your last update, it looks like the pedal reacts like the button on a hands free headset. So as to say, to play, pause and skip music or pickup/hangup a call. If the basics on the API don't give you a way to get hold of it (which I doubt) then you could move down to the NDK and see if it can be catched by the native level.

    I looked it up and thought this might help you find your way :

    • Audio Hardware

    Never know...

提交回复
热议问题