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...
#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;
}
Okay I decided to compile it for you. Attached is the program above.