    Contents  Index  Topic Contents
    Previous Topic: DAStatic Properties Relevant to DAPoint3 Objects
    Next Topic: DAStatic Properties Relevant to DASound Objects

> ## DAStatic Functions Relevant to DASound Objects

> ###

> 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.

> lib.ImportSound(
> url
> )

> ##### Parameters

> url
>   The pathname for importing the sound. This is a String data type.

> ##### Return Values

> Returns the DAImportationResult object, which has the following relevant properties:

> - Duration, which is the length of the sound, in seconds
> - Sound, which is the imported sound.

> ###

> 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.

> lib.ImportSoundAsync(
> url,
> sndStandIn
> )

> ##### Parameters

> url
>   The pathname (a string) of the file.
> sndStandIn
>   The 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 Values

> Returns the DAImportationResult object, which has the following relevant properties:

> - CompletionEvent, which is the event that triggers once the download is complete.
> - Duration, which is the length of the sound, in seconds
> - Progress, which is the percentage of the download that has completed.
> - Size, which is the size of the imported sound, in bytes.
> - Sound, which is the imported sound.

> ###

> Mix

> DAStatics Class

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

> lib.Mix(
> sound1,
> sound2
> )

> ##### Parameters

> sound1 and sound2
>   The DASound objects to be mixed.

> ##### Return Values

> Returns the DASound object.

> ###

> MixArray

> DAStatics Class

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

> lib.MixArray(
> sounds
> )

> ##### Parameters

> sounds
>   The DASound objects in the array. This is a Variant array.

> ##### Return Values

> Returns the DASound object.

> © 1998 Microsoft Corporation. All rights reserved. Terms of Use.

> Top of Page