Controlling sound from code: start, stop, rewind, loop, set start position dynamically?

Well, it might be possible with dllbind. One of programmers in our team tried to write dll music manager and it could loop music tracks from a certain position. The thing is that you’ll have to store your sounds or music externally.