- _busLayoutChanged
void _busLayoutChanged()
- _isActive
bool _isActive()
- _setPlaying
void _setPlaying(bool enable)
- getAreaMask
long getAreaMask()
- getAttenuation
double getAttenuation()
- getBus
String getBus()
- getMaxDistance
double getMaxDistance()
- getPitchScale
double getPitchScale()
- getPlaybackPosition
double getPlaybackPosition()
- getStream
Ref!AudioStream getStream()
- getStreamPaused
bool getStreamPaused()
- getVolumeDb
double getVolumeDb()
- isAutoplayEnabled
bool isAutoplayEnabled()
- isPlaying
bool isPlaying()
- opAssign
AudioStreamPlayer2D opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(AudioStreamPlayer2D other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- play
void play(double from_position)
Plays the audio from the given position 'from_position', in seconds.
- seek
void seek(double to_position)
Sets the position from which audio will be played, in seconds.
- setAreaMask
void setAreaMask(long mask)
- setAttenuation
void setAttenuation(double curve)
- setAutoplay
void setAutoplay(bool enable)
- setBus
void setBus(StringArg0 bus)
- setMaxDistance
void setMaxDistance(double pixels)
- 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()
- areaMask
long areaMask [@property setter]
Areas in which this sound plays.
- areaMask
long areaMask [@property getter]
Areas in which this sound plays.
- attenuation
double attenuation [@property getter]
double attenuation [@property setter]
Dampens audio over distance with this as an exponent.
- autoplay
bool autoplay [@property getter]
bool autoplay [@property setter]
If true audio plays when added to scene tree. Default value: false.
- bus
String bus [@property getter]
String bus [@property setter]
Bus on which this audio is playing.
- maxDistance
double maxDistance [@property getter]
double maxDistance [@property setter]
Maximum distance from which audio is still hearable.
- pitchScale
double pitchScale [@property getter]
double pitchScale [@property setter]
Changes the pitch and the tempo of the audio.
- 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]
- volumeDb
double volumeDb [@property getter]
double volumeDb [@property setter]
Base volume without dampening.
Plays audio in 2D.
Plays audio that dampens with distance from screen center.