Can you help me define what it is I need?

First off, I'm looking for something written in C or C++ that can be used in VB6.

I have a small media program that requires an *.avi file to loop endlessly. Now, it can be simply done in Vb except that I need the quality and precision that the proffessional recording programs from CakeWalk and Sonic Foundry have.

Somehow, they are able to loop an *.avi or wave file using midi time code. This offers greater precision in looping because instead
of operating in milliseconds or frames (the timer in VB6), it runs on BPM(beats per minute) and I don't believe that can be done in VB6.

I'm looking for a programmer in C and would like to be a bit more specific: do I need a *.dll, *.ocx or activeX.
And is this possible?

Any help and advice would be greatly appreciated....rluka