Re: Looping wav files with VB6 MM control
From: MikeD (nobody_at_nowhere.edu)
Date: 06/14/04
- Next message: Peter Huang: "RE: Create new InternetExplorer object creates problem!!"
- Previous message: Jeff Johnson [MVP: VB]: "Re: Save As Dialog"
- In reply to: Ed: "Re: Looping wav files with VB6 MM control"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Peter Huang: "RE: Create new InternetExplorer object creates problem!!"
- Previous message: Jeff Johnson [MVP: VB]: "Re: Save As Dialog"
- In reply to: Ed: "Re: Looping wav files with VB6 MM control"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|