Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am creating a Audio Player Application using DirectX SDK and VB .NET, i want to show the user Duration and Time elapsed of the Audio File, how can i achieve this?
P.S I'm Using VS 2010 Ultimate, Windows 7 Ultimate 64 bit...
Posted

1 solution

Easiest way is to use the WindowsApiCodePack, which will let you just ask windows for the duration - there is a description of how to do exactly that here: How to get the length (duration) of a media File in C# on Windows 7[^]
 
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