Forum archive - How to seek a sound stream or determine where you are in a sound stream

http://www.supermediastore.com/



Forum Archive Home -> Programming -> How to seek a sound stream or determine where you are in a sound stream



How to seek a sound stream or determine where you are in a sound stream

CogoSWSDS posted 2009 Jan 19 22:05
OK. A little background. I'm working on a player for a little project of mine. I know that I can link in the Windows Media Player into my C# .NET project, but I don't trust the time codes on it, which are crucial for editing. So I'm looking at writing my own little player. I found something on CodeProject that takes Windows AVIFile COM component and wraps it in a .NET wrapper suitable for C#. It even comes with a little demo application. I have figured out how the demo app works, but no dice on the sound. What I need to be able to do is:

1. I need to be able to play the sound stream. I think I can use the SoundPlayer class for this, but I'm not sure.
2. Seek within the sound stream in the AVI file. This is so I can start playing at video frame # 10,000, for example.
3. Find where I am playing from in the sound stream. This is because video playback is more intense than sound playback, so if the sound gets ahead of the video, I need to be able to jump ahead in the video to where the sound and the video are once again in sync.

Any ideas, gurus, on how this can be accomplished? I'm using .NET 2.0 and Visual Studio 2005, along with the AVIFile wrapper that can be found here, which I can tweak to suit my needs.

CogoSWSDS




Login/Register to our forum to be able to post here.








DVDFab DVD to DVD and Blu-ray to Blu-ray offers a 20% discount until Nov 22, 2009. More info or download trial!
About   Advertise   Forum Archive   RSS Feeds   Statistics