Main > Software Forum
searching an "insert-coin" sound
Gh0sty:
Good morning,
i seach an Insert-Coin sound, when you insert a real coin into a Cab this kind
of noise. And i plan to use it with Mame when i press key 5 it shold first play
this coin sound and then then go on with the game sound.
I'm not a programmer so i dont know how to solve this, i have the I-Pac
and i could use a free key for starting a small external program for playing
just this Insert-Coin sound, and after that it should examine the standard key 5.
Any helps here, maybe someone wrote such a programm allready?
Best regards
Gh0sty
headkaze:
How will you write a program to do this if your not a programmer?
Anyhow, the best way to get a coin drop sound is to record sound from Mame32 then hit 5 it will play the coin drop sound of any of your favourite games.
To play a sound it's as simple as using the PlaySound API function in winmm.dll. Your program would basically look like this...
--- Code: ---#include "stdafx.h"
#include <mmsystem.h>
#define VK_5 0x35
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
while (1)
{
Sleep(500);
if(GetAsyncKeyState(VK_5) & 0x8001)
PlaySound("1up.wav", NULL, SND_FILENAME | SND_ASYNC);
}
return 0;
}
--- End code ---
Okay I decided to compile it for you. Attached is the program above.
Gh0sty:
hey headkaze,
many thanks for the help so far!
i'm at work right now and only can test out your prog later tonight at home,
i still dont know how it will work, or how to start it, but i will test everthing.
You write " the best way to get a coin drop sound is to record sound from Mame32 "
what do you mean with this? right now a friend is recording a real WAV sound from
an Arcade Cab for me. Does Mame32 have one build in ??
R
Gh0sty
headkaze:
--- Quote from: Gh0sty on November 15, 2006, 05:43:59 am ---hey headkaze,
many thanks for the help so far!
i'm at work right now and only can test out your prog later tonight at home,
i still dont know how it will work, or how to start it, but i will test everthing.
You write " the best way to get a coin drop sound is to record sound from Mame32 "
what do you mean with this? right now a friend is recording a real WAV sound from
an Arcade Cab for me. Does Mame32 have one build in ??
R
Gh0sty
--- End quote ---
It's built into Mame32 (File->Play and Record Wave Output...)
unclet:
I attached some WAV sound files of coins being inserted into a game. Hope it helps you out.
Navigation
[0] Message Index
[#] Next page
Go to full version