Rex_C
Rex_C

Reputation: 2477

Find length in seconds of mp3 in byte array format without third party code

I have been searching for an answer to this question, but everything I come across requires something like NAudio or TagLib.

If I have an mp3 converted into a C# byte array, is there a way to get the length of the file in seconds, but without using third party code.

Upvotes: 0

Views: 187

Answers (1)

Roger Lipscombe
Roger Lipscombe

Reputation: 91925

Count the frames and multiply by ~38

Upvotes: 2

Related Questions