Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: analog controler through sound card  (Read 1295 times)

0 Members and 1 Guest are viewing this topic.

hanelyp

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 72
  • Last login:January 10, 2009, 11:08:19 pm
analog controler through sound card
« on: January 07, 2006, 11:40:24 pm »
Dusting out the inside of my computer this morning, it occurred to me that the line-in port of the sound card is a 2 channel analog input, which with the right interface hardware and software could accommodate an analog stick.  Since the port doesn't respond to DC levels, It'll necessary to use an AC tone, which introduces to possability of more channels encoded as different tones, pealed off in software.  Funneling the decoded data into a stream that most game software recognises threatens to be the hardest part on a certain OS.

Ed_McCarron

  • Nothing worse than Picard issuing the self destruct order and the next thing you know it your apartment blows up.
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2404
  • Last login:June 20, 2022, 02:33:39 pm
  • Get your mind out of the gutter. THIS is a dongle.
Re: analog controler through sound card
« Reply #1 on: January 08, 2006, 07:47:01 pm »
I gotta ask why?

If you've got a sound card, you probably have a joystick port, no?

If its the "Because its there" factor, I understand and wish you luck. :)
But wasn't it fun to think you won the lottery, just for a second there???

hanelyp

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 72
  • Last login:January 10, 2009, 11:08:19 pm
Re: analog controler through sound card
« Reply #2 on: January 09, 2006, 06:15:19 pm »
In my case I have a 'sound card on motherboard', but no joystick port.
Interfacing through USB might be easier.

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: analog controler through sound card
« Reply #3 on: January 09, 2006, 06:45:23 pm »
Or you could just buy a cheap $10 sound card.

 ;D

hanelyp

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 72
  • Last login:January 10, 2009, 11:08:19 pm
Re: analog controler through sound card
« Reply #4 on: January 10, 2006, 10:59:09 pm »
No ISA slots inside, just 3 PCI.

tetsujin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 222
  • Last login:April 10, 2007, 05:51:25 pm
  • My controls will have programmable button labels.
    • My Homepage
Re: analog controler through sound card
« Reply #5 on: January 11, 2006, 12:37:32 pm »
In my case I have a 'sound card on motherboard', but no joystick port.
Interfacing through USB might be easier.

You can buy an adaptor at Radio Shack for around $20 that connects to USB and gives you a game port.  (Four analog axes and four buttons.)  There are also similar devices you can buy elsewhere, but which will provide more buttons.  (I know there's the AKI control boards, at least...  but I don't remember their cost.)

This assuming you don't want to go the DIY route and make your own USB device as I have.  :)

Sending analog axes into a soundcard's audio input, and then digitizing and measuring frequencies seems like more trouble than it's worth.  There's easier and cheaper ways to measure analog axes with a computer.
---GEC

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: analog controler through sound card
« Reply #6 on: January 11, 2006, 01:12:31 pm »