AudioStream

Inherits: Resource < Reference < Object

Inherited By: AudioStreamGenerator, AudioStreamMicrophone, AudioStreamOGGVorbis, AudioStreamRandomPitch, AudioStreamSample

Base class for audio streams.

Description

Base class for audio streams. Audio streams are used for sound effects and music playback, and support WAV (via AudioStreamSample) and OGG (via AudioStreamOGGVorbis) file formats.

Tutorials

Methods

float get_length ( ) const

Method Descriptions

float get_length ( ) const

Returns the length of the audio stream in seconds.

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_audiostream.html