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: would like to play a sound when a button is pressed? how can i do this?  (Read 1461 times)

0 Members and 1 Guest are viewing this topic.

michelevit

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 412
  • Last login:December 25, 2024, 06:57:41 pm
i am building up a full size cab from scratch and have installed a
coin door and a credit button.

my joystick and buttons are wired to a joywiz.
what i would like to do is have a sound trigger
when the credit button is pressed. is there a simple program
that will play a .wav or .mp3 in the background when
a button is pressed?
i am inspired by the sk jukebox program which has
a coin drop sound when the credit button is pressed.
 

roadrunnr

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:December 03, 2007, 08:53:45 am
Re: would like to play a sound when a button is pressed? how can i do this?
« Reply #1 on: January 31, 2007, 11:20:54 am »
I know that many MAME games do this automatically in their original software.  For example, Ms. Pac Man plays a 'gwoink' kind of sound when you put a quarter in.  Pretty cool for a newbie like me!

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: would like to play a sound when a button is pressed? how can i do this?
« Reply #2 on: January 31, 2007, 11:22:43 am »
I can't think of many arcade games that DON'T play a sound when you insert a credit.    ???

(+_+)

  • Let me splain.
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 652
  • Last login:July 27, 2012, 09:00:32 pm
  • For I am ]{eyser Soze
Re: would like to play a sound when a button is pressed? how can i do this?
« Reply #3 on: January 31, 2007, 12:28:29 pm »
I just ran a quick test in my app and it appears that because mame's dos window now has focus, the application does not capture the keypress (ie credit button). The only thing I could think of would be an app running as a service that is listening for certain keystrokes and play a sound based on this. From what I've seen most games do this in Mame already when the coinup is pressed.
This plan is so perfect, it's retarded. -- Peter Family Guy

shardian

  • Saint is the evil mastermind
  • Trade Count: (+23)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9218
  • Last login:August 21, 2015, 03:11:31 pm
  • Friends don't let friends build frankenpanels...
Re: would like to play a sound when a button is pressed? how can i do this?
« Reply #4 on: January 31, 2007, 12:30:41 pm »
You could always get one of those simple voice recorder thingies, hack a simple mono amplifier and a new speaker to it, hack the play button to be pressed when you press the coin button and voila, independent coin op sound from inside the cabinet. ;D

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: would like to play a sound when a button is pressed? how can i do this?
« Reply #6 on: January 31, 2007, 01:31:19 pm »
Check out this thread

http://forum.arcadecontrols.com/index.php?topic=60166.0

Wow, that's a neat idea.  Did anyone try Silver's suggestion from that thread?  Anyone get it to work?