:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the AudioStream.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_AudioStream: AudioStream =========== **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Inherited By:** :ref:`AudioStreamGenerator`, :ref:`AudioStreamMicrophone`, :ref:`AudioStreamOGGVorbis`, :ref:`AudioStreamRandomPitch`, :ref:`AudioStreamSample` **Category:** Core Brief Description ----------------- Base class for audio streams. Methods ------- +---------------------------+--------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_length` **(** **)** const | +---------------------------+--------------------------------------------------------------------------+ 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:`../tutorials/audio/audio_streams` Method Descriptions ------------------- .. _class_AudioStream_method_get_length: - :ref:`float` **get_length** **(** **)** const Returns the length of the audio stream in seconds.