المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How do I repeat this sound file as required?



C# Programming
09-14-2010, 03:32 AM
Hi again coders.

I am writing my first, simple patient simulator.

I need to play a sound file on repeat, while the simulator is running.

It is a beep beep kind of file for the ECG machine (EKG in america, I am in UK)

I have a time object in my c# app, set to triger every second so I can track each second of the currently running simulation.

I tried to add my playsound() function here, but it is being reset every second (I understand why, but I cannot figure out what to do)

The whole sound file lasts approx 12 seconds, and needs to repeat straignt after it ends, for as long as the sim is running)

Sorry if it a basic question, but what functions do I need, and where would I put them to allow me to do this?

Thank you
Steve