Click here to Skip to main content
15,888,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi when i playing sound how can i stop sound exact time.
for example at 00:00:02.87455

thanks for your answer .
Posted
Comments
Sergey Alexandrovich Kryukov 6-Jul-11 0:57am    
It is not clear how you play it. Please explain.
--SA
Yuri Vital 6-Jul-11 5:29am    
How do you play sound ?

1 solution

Hi,
your question is a bit unclear.

but if you mean that your developing some kind of player or just playing a WAV sound on repeat then you could use timer object, which interval will be the time u need it to stop.
as :

Timer timer = new Timer();
timer.Interval = 2;

the interval is measured by ms.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900