- _busLayoutChanged
void _busLayoutChanged()
- _isActive
bool _isActive()
- _setPlaying
void _setPlaying(bool enable)
- getBus
String getBus()
- getMixTarget
AudioStreamPlayer.MixTarget getMixTarget()
- getPitchScale
double getPitchScale()
- getPlaybackPosition
double getPlaybackPosition()
- getStream
Ref!AudioStream getStream()
- getStreamPaused
bool getStreamPaused()
- getStreamPlayback
Ref!AudioStreamPlayback getStreamPlayback()
- getVolumeDb
double getVolumeDb()
- isAutoplayEnabled
bool isAutoplayEnabled()
- isPlaying
bool isPlaying()
- opAssign
typeof(null) opAssign(typeof(null) n)
- opEquals
bool opEquals(AudioStreamPlayer other)
- opEquals
bool opEquals(typeof(null) n)
- play
void play(double from_position)
Plays the audio from the given from_position, in seconds.
- seek
void seek(double to_position)
Sets the position from which audio will be played, in seconds.
- setAutoplay
void setAutoplay(bool enable)
- setBus
void setBus(String bus)
- setMixTarget
void setMixTarget(long mix_target)
- setPitchScale
void setPitchScale(double pitch_scale)
- setStream
void setStream(AudioStream stream)
- setStreamPaused
void setStreamPaused(bool pause)
- setVolumeDb
void setVolumeDb(double volume_db)
- stop
void stop()
- toHash
size_t toHash()
- autoplay
bool autoplay [@property getter]
bool autoplay [@property setter]
If true, audio plays when added to scene tree.
- bus
String bus [@property getter]
String bus [@property setter]
Bus on which this audio is playing.
- mixTarget
AudioStreamPlayer.MixTarget mixTarget [@property getter]
long mixTarget [@property setter]
If the audio configuration has more than two speakers, this sets the target channels. See mixtarget constants.
- pitchScale
double pitchScale [@property getter]
double pitchScale [@property setter]
The pitch and the tempo of the audio, as a multiplier of the audio sample's sample rate.
- playing
bool playing [@property getter]
bool playing [@property setter]
If true, audio is playing.
- stream
AudioStream stream [@property getter]
AudioStream stream [@property setter]
- streamPaused
bool streamPaused [@property getter]
bool streamPaused [@property setter]
If true, the playback is paused. You can resume it by setting stream_paused to false.
- volumeDb
double volumeDb [@property getter]
double volumeDb [@property setter]
Plays back audio non-positionally.
Plays an audio stream non-positionally. To play audio positionally, use AudioStreamPlayer2D or AudioStreamPlayer3D instead of AudioStreamPlayer.