CompositeSoundClip¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/tambo/blob/main/js/sound-generators/CompositeSoundClip.ts for the most up-to-date information.
Overview¶
A sound generator that is composed of multiple SoundClips that are all started and stopped at the same time. Basically, this is a container to create and control multiple SoundClip instances as one.
@author Michael Kauzmann (PhET Interactive Simulations)
Class CompositeSoundClip¶
Constructor¶
new CompositeSoundClip( soundsAndOptionsTuples : SoundAndOptions[], options? : CompositeSoundClipOptions )¶
Instance Methods¶
play()¶
stop()¶
connect( destination : AudioParam | AudioNode )¶
dispose()¶
setOutputLevel( outputLevel : number, timeConstant : number )¶
Type CompositeSoundClipOptions¶
Type SoundAndOptions¶
- sound: WrappedAudioBuffer
- options?: SoundClipOptions
Source Code¶
See the source for CompositeSoundClip.ts in the tambo repository.