Re: Looping wav files with VB6 MM control
From: Ed (ed_at_ANTISPAMtobysoft.com)
Date: 06/13/04
- Previous message: JohnK: "Re: Show Powerpoint with VB"
- In reply to: Norm Cook: "Re: Looping wav files with VB6 MM control"
- Next in thread: MikeD: "Re: Looping wav files with VB6 MM control"
- Reply: MikeD: "Re: Looping wav files with VB6 MM control"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 13 Jun 2004 17:59:14 +0100
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.
"Norm Cook" <normcook@cableone.net> wrote in message
news:10cm2ioglaugod2@corp.supernews.com...
> Not that hard either:
> http://www.geocities.com/smigman.geo/mci/wav.html
>
> "Ed" <ed@ANTISPAMtobysoft.com> wrote in message
news:ca9i99$99m$1@newsg4.svr.pol.co.uk...
> > Thanks again Mike. Time to delve into the murky world of MM API
functions I
> > think.
> >
> > Ed.
> >
> > "MikeD" <nobody@nowhere.edu> wrote in message
> > news:u5zYHvoTEHA.2908@TK2MSFTNGP10.phx.gbl...
> > >
> > > "Ed" <ed@ANTISPAMtobysoft.com> wrote in message
> > > news:ca88br$b0i$1@newsg4.svr.pol.co.uk...
> > > > Thanks for that Mike. Can PlaySound be used to specify a portion
within
> > a
> > > > wav file to loop? i.e. Using an equivalent to MM Control's "From"
and
> > "To"
> > > > properties.
> > >
> > > No. PlaySound (or sndPlaySound for that matter) can only play a .wav
file
> > > from start to finish (although playback can be stopped at anytime by
> > calling
> > > the function again IF the sound was played asynchronously [meaning the
> > > function returns immediately after playback has started]). To specify
> > > "from" and "to" points, you'd need to use MCI (not necessarily the MM
> > > control as you can use MCI API functions) or DirectX.
> > >
> > > PlaySound is the easiest way to play a .wav sound, but it doesn't give
you
> > > much control. It allows you to loop the sound, play it synchronously
> > > (meaning the function doesn't return until playback has finished) or
> > > asynchronously, but not much else.
> > >
> > > Mike
> > >
> > >
> >
> >
>
>
- Previous message: JohnK: "Re: Show Powerpoint with VB"
- In reply to: Norm Cook: "Re: Looping wav files with VB6 MM control"
- Next in thread: MikeD: "Re: Looping wav files with VB6 MM control"
- Reply: MikeD: "Re: Looping wav files with VB6 MM control"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|