Re: Looping wav files with VB6 MM control

From: Ed (ed_at_ANTISPAMtobysoft.com)
Date: 06/13/04

  • Next message: Bob: "Re: Attaching files in email"
    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
    > > >
    > > >
    > >
    > >
    >
    >


  • Next message: Bob: "Re: Attaching files in email"

    Relevant Pages

    • Re: system calls
      ... Writing a simple recursive file-deleter is fairly straightforward; ... If you really want to run a command line ... are better ways to do the operation from within the API, and be able to report to the user ... >I have looked at CreateProcess but found it complicated and unsatisfactory. ...
      (microsoft.public.vc.mfc)
    • RE: call rsh from .NET - source code?
      ... With an API? ... calling the command line from a command prompt. ... Yes, it is not an extremely sexy methodology, ...
      (microsoft.public.dotnet.framework)
    • Re: [Python-Dev] PEP 324: popen5 - New POSIX process module
      ... With the current API, you do this by checking if the return code is 127. ... The shell uses these return codes: ... the command was found but is not executable ... If you look at the popen5 implementation and PEP, ...
      (comp.lang.python)
    • Re: GPIB Multidevice API timeout
      ... the default command timeout is much too long to wait. ... this 'multidevice' API, that isn't an option. ... Does anybody know a GPIB command other than ibdev() that sets the bus ...
      (sci.electronics.design)
    • Re: Pattern for foo tool <-> API <-> shell|GUI
      ... code to separate the actual command implementations from the command-line ... I have some Python scripts, ... user Provide these parameters for a particular call to command API ... client could do some verification at the first place. ...
      (comp.lang.python)