[directmusic] Fade out and stop

  • From: "Aaron R Leiby" <aleiby@xxxxxxxxxxxxx>
  • To: <directmusic@xxxxxxxxxxxxx>
  • Date: Sat, 5 Oct 2002 00:36:00 -0400

Simple question:

How might I create a script method that fades the music out and then stops
it?

Individually I can do:

sub dmLowVolume
    SetMasterVolume -1000, 3000
end sub

sub dmAllStop
    select case PlayFlag
    case 1
        mySeg.stop
    [...]
    end select
end sub

So that would lead me to believe I would simply need to do:

sub dmFadeout
    dmLowVolume
    sleep 3000
    dmAllStop
end sub

Of course things never work as I expect.  :)

For future reference, where's the best place to look for what VB DirectMusic
supports and what it does not?

Thanks.


Aaron.



Other related posts: