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.
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.
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.
- 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.
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.
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
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.