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