Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 114 users online: 3 members, 77 guests and 34 bots. Members: juju2143, Spyro543. Bots: VoilaBot (4), Magpie Crawler (3), VoilaBot (7), Googlebot (20).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
|
| Author |
Message |
|
LincolnB

Advanced Member

Joined: 07 Jul 2011 Posts: 199
|
Posted: 07 Jul 2012 05:20:23 pm Post subject: Speaker Controller Program (Help) |
|
|
I have some speakers that have an external headphones plug-in thingy. I'd like to be able to write a program (or download one, if such a program has already been written) that lets me switch from headphone output to speaker output - that is, I'd like to be able to hear sound out of the speakers, not out of the headphones, without having to unplug the headphones. However, I don't know how to go about doing this - I'm familiar with C and Java syntax, and can learn quickly anyways, so if anyone knows how to do this, please let me know! _________________ -LincolnB
 |
|
| Back to top |
|
|
Tari

Systems Integrator

Joined: 03 Jul 2006 Posts: 2107 Location: Always-winter, Michigan
|
Posted: 07 Jul 2012 06:13:32 pm Post subject: |
|
|
Can't say without more details. It's probably not possible (usual disclaimer: without hardware modification). _________________
Ask questions the smart way · タリ |
|
| Back to top |
|
|
benryves

Cemetech Expert

Joined: 12 Aug 2008 Posts: 1358 Location: London, United Kingdom
|
Posted: 07 Jul 2012 06:46:39 pm Post subject: |
|
|
In the unlikely event that the headphones and speakers appear as separate audio devices in the Sound control panel then plug in both, right-click the speakers device and select Set as Default Device. That way they will still be used if both speakers and headphones are plugged in (though no sound would come out of the headphones, naturally).
If they are not separate audio devices then it's probably something that's handled on the hardware level. You may be able to find some device-specific software to control this but I would find it unlikely.
May I enquire as to why you would want to do this? There may be a more practical solution, as it seems odd that the obvious answer ("unplug the headphones") is not suitable. |
|
| Back to top |
|
|
LincolnB

Advanced Member

Joined: 07 Jul 2011 Posts: 199
|
Posted: 07 Jul 2012 06:51:31 pm Post subject: |
|
|
| benryves wrote: | | May I enquire as to why you would want to do this? There may be a more practical solution, as it seems odd that the obvious answer ("unplug the headphones") is not suitable. |
Yeah, I don't know. Its more of a curiousity thing. _________________ -LincolnB
 |
|
| Back to top |
|
|
seana11

Super-Expert

Joined: 23 May 2011 Posts: 833 Location: Well, the sign says "You are here"...
|
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 08 Jul 2012 10:17:58 am Post subject: |
|
|
| seana11 wrote: | alsamixer
You can mute stuff separately from there. | As benryves said far more eloquently, if they're not separate devices, this isn't possible. For my fancy 5.1 Logitech speakers, the headphones and line-out are indeed two different devices, but for almost every set of stereo speakers, the headphone jack override is handled entirely in the hardware of the speaker, often a physical switch that you trigger when you plug in headphones. If you were clever, you could use a microcontroller as a USB device to control that switch, and write a little PC-side program to interface with said microcontroller. _________________
 |
|
| Back to top |
|
|
|
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.026216 seconds.
|