[directmusic] Re: using audiopath in scripts

  • From: "Paul Stroud" <paul@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
  • To: <directmusic@xxxxxxxxxxxxx>
  • Date: Tue, 6 May 2003 00:21:25 +0100

You'll almost there Andreas,

Create an audiopath, which I think you've done. If you haven't - right click
project folder and create a new audiopath - perhaps call it MyAudiopath

Then to create the audiopath (which is the confusing bit, cause you think
you've already done it - but you haven't, you've only created an audiopath
configuration) -

Dim PlayThruThis  'THIS WILL BE YOU'RE AUDIOPATH

Sub CreateAPsetVolAndPlay
Set PlayThruThis = MyAudiopath.create()   'THAT'S YOU'RE AUDIOPATH CREATED

PlayThruThis.SetVolume -100  'SET VOLUME LIKE YOU ALREADY DID

SfxHit.Play IsSecondary, PlayThruThis  'DONE

End Sub

I don't know of another way - but others on this list have a few tricks up
their sleeves

All the best

Paul





> -----Original Message-----
> From: directmusic-bounce@xxxxxxxxxxxxx
> [mailto:directmusic-bounce@xxxxxxxxxxxxx]On Behalf Of Andreas Seebeck
> Sent: 05 May 2003 16:11
> To: directmusic@xxxxxxxxxxxxx
> Cc: Carlos Barbosa
> Subject: [directmusic] using audiopath in scripts
>
>
>
> hi,
> I would like to set the volume of a segment by setting an
> audiopath's volume
> and playing it through that path, like this:
>
>          ap.setvolume v
>          sfxhit.play IsSecondary,ap
>
> But how do I get an audiopath??? The help talks about creating it with
> audiopathconfig.create, but I don't understand that. Where do I get an
> audiopathconfig then?
> Embedding an audiopath into the script and using that doesn't work either.
>
> Any ideas?
>
> Best wishes,
>
> Andreas
>
>
>
>


Other related posts: