:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.5/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.5/doc/classes/AudioStream.xml. .. _class_AudioStream: AudioStream =========== **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Inherited By:** :ref:`AudioStreamGenerator`, :ref:`AudioStreamMP3`, :ref:`AudioStreamMicrophone`, :ref:`AudioStreamOGGVorbis`, :ref:`AudioStreamRandomPitch`, :ref:`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 :ref:`AudioStreamSample`) and OGG (via :ref:`AudioStreamOGGVorbis`) file formats. Tutorials --------- - :doc:`Audio streams <../tutorials/audio/audio_streams>` - `Audio Generator Demo `__ - `Audio Mic Record Demo `__ - `Audio Spectrum Demo `__ Methods ------- +---------------------------+----------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_length` **(** **)** |const| | +---------------------------+----------------------------------------------------------------------------+ Method Descriptions ------------------- .. _class_AudioStream_method_get_length: - :ref:`float` **get_length** **(** **)** |const| Returns the length of the audio stream in seconds. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`