Audio

THREE.Audio
class Audio(listener: AudioListener) extends Object

Create a non-positional audio object. This uses the Web Audio API and can play audio clips that are either loaded via the AudioLoader or created dynamically.

Attributes

Graph
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def connect(audioNode: Any): Unit

Connect this audio source to another audio node.

Connect this audio source to another audio node.

Attributes

def disconnect(): Unit

Disconnect this audio source from another audio node.

Disconnect this audio source from another audio node.

Attributes

def getFilter(): Any

Get the filter for this audio source.

Get the filter for this audio source.

Attributes

def getFilters(): Array[Any]

Get the filters for this audio source.

Get the filters for this audio source.

Attributes

def getLoop(): Boolean

Get the loop property for this audio source.

Get the loop property for this audio source.

Attributes

def getOutput(): Any

Get the output for this audio source.

Get the output for this audio source.

Attributes

def getVolume(): Double

Get the volume for this audio source.

Get the volume for this audio source.

Attributes

def pause(): Unit

Pause the audio playback.

Pause the audio playback.

Attributes

def play(delay: Double): Unit

Start playing the audio.

Start playing the audio.

Attributes

def setBuffer(audioBuffer: AudioBuffer): Unit

Set the audio buffer for this audio source.

Set the audio buffer for this audio source.

Attributes

def setFilter(filter: Any): Unit

Set the filter for this audio source.

Set the filter for this audio source.

Attributes

def setFilters(value: Array[Any]): Unit

Set the filters for this audio source.

Set the filters for this audio source.

Attributes

def setLoop(value: Boolean): Unit

Set the loop property for this audio source.

Set the loop property for this audio source.

Attributes

def setPlaybackRate(value: Double): Unit

Set the playback rate for this audio source.

Set the playback rate for this audio source.

Attributes

def setVolume(value: Double): Unit

Set the volume for this audio source.

Set the volume for this audio source.

Attributes

def stop(): Unit

Stop the audio playback.

Stop the audio playback.

Attributes

def updateMatrixWorld(force: Boolean): Unit

Update the matrix world for this audio source.

Update the matrix world for this audio source.

Attributes

Inherited methods

def hasOwnProperty(v: String): Boolean

Attributes

Inherited from:
Object
def isPrototypeOf(v: Object): Boolean

Attributes

Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean

Attributes

Inherited from:
Object
def toLocaleString(): String

Attributes

Inherited from:
Object
def valueOf(): Any

Attributes

Inherited from:
Object

Concrete fields

The audio buffer for this audio source.

The audio buffer for this audio source.

Attributes

var context: Any

The audio context for this audio source.

The audio context for this audio source.

Attributes

var currentTime: Double

The current time of the audio playback.

The current time of the audio playback.

Attributes

var gain: Any

The gain node for this audio source.

The gain node for this audio source.

Attributes

var hasPlaybackControl: Boolean

Whether the audio has loaded.

Whether the audio has loaded.

Attributes

var isPlaying: Boolean

Whether the audio is currently playing.

Whether the audio is currently playing.

Attributes

var playbackRate: Double

The playback rate for this audio.

The playback rate for this audio.

Attributes

var source: Any

The source node for this audio.

The source node for this audio.

Attributes

var sourceType: String

The type of source for this audio.

The type of source for this audio.

Attributes