Struct AudioStreamPlayer
Plays back audio non-positionally.
struct AudioStreamPlayer
;
Plays an audio stream non-positionally.
Properties
Name | Type | Description |
---|---|---|
autoplay [get, set]
|
bool | If true , audio plays when added to scene tree.
|
bus [get, set]
|
String | Bus on which this audio is playing. |
mixTarget [get, set]
|
AudioStreamPlayer | If the audio configuration has more than two speakers, this sets the target channels. See mixtarget constants.
|
pitchScale [get, set]
|
double | Changes the pitch and the tempo of the audio. |
playing [get, set]
|
bool | If true , audio is playing.
|
stream [get, set]
|
AudioStream | The AudioStream object to be played.
|
streamPaused [get, set]
|
bool | If true , the playback is paused. You can resume it by setting stream_paused to false .
|
volumeDb [get, set]
|
double | Volume of sound, in dB. |
Methods
Name | Description |
---|---|
_busLayoutChanged
|
|
_isActive
|
|
_setPlaying
|
|
getBus
|
|
getMixTarget
|
|
getPitchScale
|
|
getPlaybackPosition
|
Returns the position in the AudioStream in seconds.
|
getStream
|
|
getStreamPaused
|
|
getStreamPlayback
|
Returns the AudioStreamPlayback object associated with this AudioStreamPlayer .
|
getVolumeDb
|
|
isAutoplayEnabled
|
|
isPlaying
|
|
play
|
Plays the audio from the given from_position , in seconds.
|
seek
|
Sets the position from which audio will be played, in seconds. |
setAutoplay
|
|
setBus
|
|
setMixTarget
|
|
setPitchScale
|
|
setStream
|
|
setStreamPaused
|
|
setVolumeDb
|
|
stop
|
Stops the audio. |
Enums
Name | Description |
---|---|
Constants
|
|
MixTarget
|