Im doing a retropie project and I was wondering how I can wire a headphone jack to my adafruit amplifier while keeping external speakers. I want it to recognize when I plug in headphones and turn off the speakers and play the output through the headphone jack.
Is there another component that I need?