Line-in jack sense with C/C++ in Ubuntu

后端 未结 1 339
走了就别回头了
走了就别回头了 2021-01-19 05:16

This has probably been asked to death around here, but I could never get to a final solution (probably for good cause).

Anyway, is there any way in Ubuntu (I use Ubu

1条回答
  •  生来不讨喜
    2021-01-19 06:15

    The jack detection API is (here or here):

    snd_jack_new — Create a new jack
    snd_jack_set_parent — Set the parent device for a jack
    snd_jack_report — Report the current status of a jack 
    

    0 讨论(0)
提交回复
热议问题