Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-17-2006, 03:13 PM   #1 (permalink)
Deliverance
C++ Beginner
 
Join Date: Jul 2005
Location: Ottawa
Posts: 73
Deliverance is on a distinguished road
Sound Card

I don't know if this is classified as C++, but is there a way with C++ code to change the line in function to the recording jack and vice-versa on a laptop/PC? Any help would be appreciated, thanks
Deliverance is offline   Reply With Quote
Old 02-17-2006, 03:18 PM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 701
DJMaze is on a distinguished road
"line in function to the recording jack" ehm isn't that the same blue colored connector?
DJMaze is offline   Reply With Quote
Old 02-19-2006, 09:35 AM   #3 (permalink)
Deliverance
C++ Beginner
 
Join Date: Jul 2005
Location: Ottawa
Posts: 73
Deliverance is on a distinguished road
Let me rephrase, what I want to attempt is to switch the function between the recording jack and input jack on a sound card. There are only two inputs on the jack, an input and recording. On a laptop i picked up recently, I've noticed that the input doesn't seem to work, I believe there is a bent wire which is grounding the connection, disabling both the internal speakers and any other speakers I try to plug into it. I know the sound card isn't completely malfunctioning since if I fiddle with a 1/8'' jack, if I plug it in partially and move it around, I can re-enable the internal speakers, but only for the period of time that I am holding the cable in place. If I were to switch the function of the recording line with the input line, wouldn't the short on the input just bypass as the recording jack wouldn't be active, and allow me to at least use the internal speakers?
Deliverance is offline   Reply With Quote
Old 02-19-2006, 09:37 AM   #4 (permalink)
Deliverance
C++ Beginner
 
Join Date: Jul 2005
Location: Ottawa
Posts: 73
Deliverance is on a distinguished road
I only ask this in the C++ forum as I believe that within the driver information there must be a way to distinguish which connection is made, and as such which action to initiate by the sound card. I'm wondering if there would be a way to reverse the function that the sound card is doing (making it think that the jacks are as they were, but their actions reversed)?
Deliverance is offline   Reply With Quote
Old 02-20-2006, 04:07 AM   #5 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 701
DJMaze is on a distinguished road
ah you mean the pink (microphone) and blue (line-in). They are both recording options.
Most integrated soundcards have both 5.1 and stereo sound options.
In your bios or soundcard software you can switch and when its set to 5.1 it has no recording. Did you check that?

And yes it is possible to write in any language a driver that changes the behavior.
DJMaze is offline   Reply With Quote
Old 02-27-2006, 01:45 PM   #6 (permalink)
Deliverance
C++ Beginner
 
Join Date: Jul 2005
Location: Ottawa
Posts: 73
Deliverance is on a distinguished road
I've checked the bios, doesn't allow me to switch it from there, basically what I'm trying to do is:

The input for which I plug in speakers, headphones, etc i want reversed with the recording jack.

The sound card itself only has these two inputs, I want them switched because the piece of metal making a connection is bent and I believe it's shorting my internal speakers.

Can anyone help me write a driver update to reverse the role of the two jacks?
Deliverance is offline   Reply With Quote
Old 02-27-2006, 02:42 PM   #7 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
If you're on windows, that's probably beyond the scope of most people on this forum, since the windows drivers are generally written by the manufacturers, who don't generally disclose all of the information about the device.
If you were on something like linux or bsd where the drivers were open source and you might only have to make some slight changes it would probably be much more feasible.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 02-27-2006, 04:52 PM   #8 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 701
DJMaze is on a distinguished road
Quote:
Originally Posted by Deliverance
The input for which I plug in speakers, headphones, etc i want reversed with the recording jack.

The sound card itself only has these two inputs, I want them switched because the piece of metal making a connection is bent and I believe it's shorting my internal speakers.
Wow that's very chip dependant since most chips have a design with explicit input and output pins which you can't reverse.
For example see the sheet of the ICEnsemble/VIA Envy24 chip http://icensemble.com/products/pdf/envy24pb.pdf

I'd sugest you replace the connector or the whole card
DJMaze is offline   Reply With Quote
Old 02-28-2006, 08:54 PM   #9 (permalink)
Deliverance
C++ Beginner
 
Join Date: Jul 2005
Location: Ottawa
Posts: 73
Deliverance is on a distinguished road
Gotcha, that's all the info I needed...*sigh*, I guess I'll go do some shopping.

Thanks for the info though, it's much appreciated.
Deliverance is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Project Lost Tomorrow recruiting Programmers and Sound Engineers chewtoy Standard C, C++ 1 12-07-2005 05:18 AM
Credit Card Storage and Security: sde Program Design and Methods 14 07-20-2005 09:42 PM
Turning a normal wireless Card into an access point redhead Linux / BSD / OS X 7 05-21-2005 09:10 AM
Student hackers: we didn't defeat campus debit card system redhead Code Newbie News 0 07-15-2003 12:02 PM
Realtek ethernet pci card Hrqls Linux / BSD / OS X 4 03-24-2003 09:43 PM


All times are GMT -8. The time now is 06:01 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting