Re: Looping wav files with VB6 MM control

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: MikeD (nobody_at_nowhere.edu)
Date: 06/14/04


Date: Sun, 13 Jun 2004 21:39:50 -0400


"Ed" <ed@ANTISPAMtobysoft.com> wrote in message
news:cai155$gq8$1@news8.svr.pol.co.uk...
> Thanks Norm, but there's no mention of looping. There's a "repeat" command
> for the MM API, but that appears to only apply to AVI files.

MCI provides no "built-in" way to loop (like PlaySound does for a .wav
file). Even using the API, you'd have to do pretty much the same thing as
you've done with the MM control...only it's more involved because you need
to use a callback function to get notifications from MCI about playback
status (and thus determine when playback has stopped).

I have no idea if it'll help, but you might want to look into using DirectX.
I also don't know exactly what it is you're trying to do (apparently, loop
segments of .wav files, but that's just a guess). DirectX may help. I'm
not real familiar with DirectX so I can't say for sure. But you're
apparently not happy with what MCI or the PlaySound function can do, so you
may as well look into what DirectX offers.

Mike



Relevant Pages

  • Re: OGL portability and future delivery
    ... it could be a severe impact against OpenGL. ... DirectX is no standardized API. ... DirectX 10 relies on the Windows Driver Model. ...
    (comp.graphics.api.opengl)
  • Re: OGL portability and future delivery
    ... However if a critical underlying API is changed this is a major ... implemented by wrapping a layer aroung OpenGL. ... And they will tell Apple about it, ... changing to DirectX would require a lot of work. ...
    (comp.graphics.api.opengl)
  • Re: OGL portability and future delivery
    ... DirectX is no standardized API. ... OpenGL has proved to be stable for over 10 years (OpenGL 1.1 ... DirectX 10 relies on the Windows Driver Model. ...
    (comp.graphics.api.opengl)
  • Re: Win32Asm and Graphic
    ... >> How I can switch on a pixel on the screen only using MASM, ... > bitmap and some other window is actually at the front and you're ... I'd have to say that you can use DirectX (in fact the Direct Draw ... You're still using the Windows API though (in this case the ...
    (alt.lang.asm)
  • Re: Project direction required
    ... fade down the playing audio and trigger and fade up the new audio. ... Can you point me to some good reading on the Win32 API? ... Is there a basic tutorial for DirectX? ...
    (microsoft.public.win32.programmer.directx.audio)