how to grab pc-speaker beep

Hi,

My problem is that I need to know when the external application send some beep to pc-speaker.

I would like to create some kind of application which will be run background and play a sound (e.g. WAV) when the other application send some beep.

I hope you will be able to help me.

Best Regards
Maciej

P.s. sorry for my English ;-)

[345 byte] By [MaczaQ] at [2008-1-17]