MCI Device shows Incorrect Media Length
-
16-04-2021 - |
Question
Sometimes the MCI device shows Incorrect Media Length for some particular media. I searched a lot in Google and the only solution I could find is written in Delphi (Delphi Solution) I couldn't find any Delphi to C# or VB converter. Is there any workaround for this problem ? I just want my Media length to be correct.
Solution
Head to this page of a french visual basic community site.
- mp3_header retrieves in hex the header of the mp3 passed as parameter to it. It can serve as a good start to convert the delphi
function getmp3length(NameOfFile:string):integer
since it processes the header and expects also a file name as a parameter.
Good luck!
Edit:
You can also find on The Code Project
site (in english) an interesting VB.NET project doing MP3 header manipulation. Hopefully It helps you in your conversion effort.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow