How do you play MP3 on VB.NET and figure out how to play MS?

I need to play MP3 in the background while creating animation. The sound drives the animation timeline, so I need to track MS from the beginning of the file to keep the events in sync. In VB6, I used MMControl which incremented the event at regular intervals and could count frames from the beginning to always determine my position. I just can't figure out the .Net way to do this.

Thank.

+1


source to share


2 answers


Since MMControl in VB6 was just a COM object, I would recommend using this same object as it has worked for you in the past.

The following article shows you how to do this: http://www.c-sharpcorner.com/UploadFile/xxxpluto/MultimediaControls11182005001632AM/MultimediaControls.aspx



Let me know if it helps.

+2


source


Thank,

Found this on MicroSofts when declaring a com object in code.



http://msdn.microsoft.com/en-us/library/bb262248(VS.85).aspx

Looks like an easy way to solve a problem. I think I was looking for a .NET solution.

+2


source







All Articles