3

I am working with an sound application on Ubuntu Linux where I have to make decision based on Headphone Plug In or Plug out.

How can I implement this functionality using C/C++?

What library I have to use to detect Headphone is connected or not?

raj123
  • 564
  • 2
  • 10
  • 27
  • Check out https://unix.stackexchange.com/questions/25776/detecting-headphone-connection-disconnection-in-linux – solarflare May 08 '19 at 01:22
  • I already checked it , accepted answer talk about acpi_listen command line utility but here I have to perform using c/c++@solarflare – raj123 May 08 '19 at 19:00
  • https://askubuntu.com/questions/23508/how-to-automatically-change-volume-level-when-un-plugging-headphones The sample code given in this website works for me @thanks everyone – raj123 Jun 17 '19 at 21:03

0 Answers0