| Main > Main Forum |
| would like to play a sound when a button is pressed? how can i do this? |
| (1/2) > >> |
| michelevit:
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:
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:
I can't think of many arcade games that DON'T play a sound when you insert a credit. ??? |
| (+_+):
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. |
| shardian:
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 |
| Navigation |
| Message Index |
| Next page |