   DirectShow and seamless looping
  I'm using DirectSound to play short wav files for sound effects, and DirectShow for streaming music (avoiding DirectMusic altogether). From what I have set up, I can seamlessly loop wav, aif, and au files with the aid of the wave parser filter and using another thread to watch for end of segment events. Other files types like mp3 and midi seem to have a split second break in sound when looping, and I haven't found any documentation or articles on how to handle something like this. I thought about hooking up the wave parser filter to the filter graph somehow, or making some custom filters to handle these things. Also, I want to look into ogg vorbis for music and was wondering how well this is supported.Are there any good articles or suggestions for seamless looping of music with DirectShow? Would it be better to convert a file format to PCM and stream that into a DirectSound buffer?   
  Are you using put_CurrentPosition(0) in IMediaPosition to restart the sample?   ;  No, I am using IMediaSeeking with SetPositions(), since it was suggested by the documentation for applications in C++... but I'm interested in what you were going to suggest.   ;  It's worth a try, but your right I just looked up the two interfaces and it does recommend IMediaSeeking for C++ apps. I just thought it might be worth giving it a try.The thing is the time it takes to restart a graph is probably causing the pause and might not be something that can be fixed easily. Different codecs and filters might change this time.I notice in WMP playing something on loop has the same gap. You might be better off using a library like BASS or fmod.You could also try setting up two graphs and switching between them.   ;  To add my $.02, FMOD is great (I use it for all my projects) but I don't think you can use it to seamlessly loop MP3s -- according to the FMOD message boards, this is a limitation of the file format and not any particular player.  You definitely CAN seamlessly loop .OGG files, though; this is just one of many advantages of using OGG over MP3.In other words, I don't know if what you're trying to do is even possible with MP3s, although one would think that it should be easy enough with MIDI...   ;  Thanks! I'll check out what FMOD has to offer.   