DAStatics Functions Relevant to DASound Objects

ImportSound Creates a sound behavior by synchronously importing the given .wav or MIDI file.
ImportSoundAsync Creates a DASound by asynchronously importing the given .wav or MIDI file.
Mix Creates a sound behavior that is equivalent to sound1 + sound2.
MixArray Creates a sound that is equivalent to sound1 + sound2 + soundn.

ImportSound

DAStatics Class

Creates a sound behavior by synchronously importing the given .wav or MIDI file. These downloads should be small and listed before asynchronous downloads. Use asynchronous downloads for more complex images and sounds. See ImportSoundAsync for a description of the asynchronous import function.

Syntax

lib.ImportSound( url )

Parameters

url
Path for importing the sound. This is a string data type.

Return Value

Returns the DAImportationResult object, which has the following relevant properties.

ImportSoundAsync

DAStatics Class

Creates a DASound by asynchronously importing the given .wav or MIDI file. Asynchronous downloads should be listed after synchronous ones and used for more complex sounds and images. For a description of the synchronous import function, see ImportSound.

Syntax

lib.ImportSoundAsync( url, sndStandIn )

Parameters

url
Path (a string) of the file.
sndStandIn
Sound to use while the contents at url are still being downloaded. This argument cannot be null, however, the sound can be silence. This is a DASound.

Return Value

Returns the DAImportationResult object, which has the following relevant properties.

Mix

DAStatics Class

Creates a sound behavior that is equivalent to sound1 + sound2.

Syntax

lib.Mix( sound1, sound2 )

Parameters

sound1 and sound2
DASound objects to be mixed.

Return Value

Returns the DASound object.

MixArray

DAStatics Class

Creates a sound that is equivalent to sound1 + sound2 + soundn.

Syntax

lib.MixArray( sounds )

Parameters

sounds
DASound objects in the array. This is a variant array.

Return Value

Returns the DASound object.


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.