Sound class

class Sound

Annotations
  • @JS()

Constructors

Sound(String name, dynamic urlOrArrayBuffer, Scene scene, [void readyToPlayCallback(), ISoundOptions options])

Properties

autoplay bool
getter/setter pair
currentTime num
no setter
directionalConeInnerAngle num
getter/setter pair
directionalConeOuterAngle num
getter/setter pair
distanceModel String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isPaused bool
getter/setter pair
isPlaying bool
getter/setter pair
loop bool
getter/setter pair
maxDistance num
getter/setter pair
metadata ↔ dynamic
getter/setter pair
name String
getter/setter pair
onended ↔ dynamic Function()
getter/setter pair
onEndedObservable Observable<Sound>
getter/setter pair
refDistance num
getter/setter pair
rolloffFactor num
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
soundTrackId num
getter/setter pair
spatialSound bool
getter/setter pair
useCustomAttenuation bool
getter/setter pair

Methods

attachToMesh(TransformNode transformNode) → void
clone() Sound
connectToSoundTrackAudioNode(AudioNode soundTrackAudioNode) → void
detachFromMesh() → void
dispose() → void
getAudioBuffer() AudioBuffer
getSoundGain() GainNode
getSoundSource() AudioBufferSourceNode
getVolume() num
isReady() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
play([num time, num offset, num length]) → void
serialize() → dynamic
setAttenuationFunction(num callback(num currentVolume, num currentDistance, num maxDistance, num refDistance, num rolloffFactor)) → void
setAudioBuffer(AudioBuffer audioBuffer) → void
setDirectionalCone(num coneInnerAngle, num coneOuterAngle, num coneOuterGain) → void
setLocalDirectionToMesh(Vector3 newLocalDirection) → void
setPlaybackRate(num newPlaybackRate) → void
setPosition(Vector3 newPosition) → void
setVolume(num newVolume, [num time]) → void
stop([num time]) → void
switchPanningModelToEqualPower() → void
switchPanningModelToHRTF() → void
toString() String
A string representation of this object.
inherited
updateDistanceFromListener() → void
updateOptions(ISoundOptions options) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

Parse(dynamic parsedSound, Scene scene, String rootUrl, [Sound sourceSound]) Sound