Kd N

Kd N

  • NA
  • 44
  • 4.7k

Audio length calculation

Jun 7 2020 11:32 AM
Hi,
 
I am working on audio file in C#, can any one help me to know how to calculate audio lenght in C# to show it on progress bar.
  1. SoundPlayer simpleSound = new SoundPlayer(@"C:\Users\Public\Music\Sample Music\file_example_WAV_1MG.wav");  
  2. simpleSound.Play(); 

Answers (5)