class-description NEWS COMMUNITY STORE LABS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE LABS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectNode AudioStreamPlayer
Plays back audio non-positionally.

Plays an audio stream non-positionally.

To play audio positionally, use AudioStreamPlayer2D or AudioStreamPlayer3D instead of AudioStreamPlayer.

finished finished<>():finished

Emitted when the audio stops playing.

Enum MixTarget<>():Enum

MIX_TARGET_STEREO = 0

The audio will be played only on the first channel.


MIX_TARGET_SURROUND = 1

The audio will be played on all surround channels.


MIX_TARGET_CENTER = 2

The audio will be played on the second channel, which is usually the center.

bool autoplay<>():bool

If true, audio plays when added to scene tree.

StringName bus<>():StringName

Bus on which this audio is playing.

Note: When setting this property, keep in mind that no validation is performed to see if the given name matches an existing bus. This is because audio bus layouts might be loaded after this property is set. If this given name can't be resolved at runtime, it will fall back to "Master".

int max_polyphony<>():int

The maximum number of sounds this node can play at the same time. Playing additional sounds after this value is reached will cut off the oldest sounds.

MixTarget mix_target<>():MixTarget

If the audio configuration has more than two speakers, this sets the target channels. See MixTarget constants.

float pitch_scale<>():float

The pitch and the tempo of the audio, as a multiplier of the audio sample's sample rate.

bool playing<>():bool

If true, audio is playing.

AudioStream stream<>():AudioStream

The AudioStream object to be played.

bool stream_paused<>():bool

If true, the playback is paused. You can resume it by setting stream_paused to false.

float volume_db<>():float

Volume of sound, in dB.

float get_playback_position<>():float

Returns the position in the AudioStream in seconds.

AudioStreamPlayback get_stream_playback<>():AudioStreamPlayback

Returns the AudioStreamPlayback object associated with this AudioStreamPlayer.

bool has_stream_playback<>():bool

Returns whether the AudioStreamPlayer can return the AudioStreamPlayback object or not.

void play<>( float from_position=0.0, from_position:float=0.0, ):void

Plays the audio from the given from_position, in seconds.

void seek<>( float to_position=, to_position:float=, ):void

Sets the position from which audio will be played, in seconds.

void stop<>():void

Stops the audio.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...