Re: mci play doesn't start from begin

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Tue, 17 Jan 2006 18:30:56 +0100, jan_bar wrote:

> I use mci to play mp3 or wav sounds. It works fine on Win NT, but on WinXP
> it behaves unpredictable. Usually the sound is not played from they very
> begin, it starts in the middle. But sometimes it plays the sound corrrectly.
> Initialy I was thinking about bug in my program (uninitialized variable or
> so), but now I am sure that everything is correct. Are there bug in mci on
> WinXP? What can I do next?
>
> I used FileMon from SysInternals and compared trace for "good behaviour" and
> "bad behaviour", the traces are same. MCI surely gets the same data every
> time.

MCI is a wrapper over DirectShow. With a couple of extra lines of code you
could do your playback through DirectShow with probably more reliable
results.

Look at the DirectShow documentation in the Platform SDK or an older
DirectX SDK.
.



Relevant Pages

  • Re: MCI & sockets
    ... Do you know where can I find some samples for the source filter on direct ... >> I need help in sending data from my buffer to MCI for ... > Unless you have a third-party MCI driver for MPEG2, ... > DirectShow to play the file. ...
    (microsoft.public.win32.programmer.mmedia)
  • mci play doesnt start from begin
    ... I use mci to play mp3 or wav sounds. ... It works fine on Win NT, but on WinXP ... But sometimes it plays the sound corrrectly. ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: How To use Audio files in C++(.NET)
    ... There are two fairly easy interfaces, MCI and DirectShow (MCI actually will ... SDK for the moment. ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: Problem playing mpgs with mciSendString
    ... none of which supports playback of MPG files ... That call will run the underlying DirectShow graph. ... You do not have enough control on the underlying graph from ... the MCI level. ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: Problem playing mpgs with mciSendString
    ... none of which supports playback of MPG files ... That call will run the underlying DirectShow graph. ... You do not have enough control on the underlying graph from ... the MCI level. ...
    (microsoft.public.win32.programmer.mmedia)