class_audiostream.rst 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the AudioStream.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_AudioStream:
  6. AudioStream
  7. ===========
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Inherited By:** :ref:`AudioStreamGenerator<class_AudioStreamGenerator>`, :ref:`AudioStreamMicrophone<class_AudioStreamMicrophone>`, :ref:`AudioStreamOGGVorbis<class_AudioStreamOGGVorbis>`, :ref:`AudioStreamRandomPitch<class_AudioStreamRandomPitch>`, :ref:`AudioStreamSample<class_AudioStreamSample>`
  10. Base class for audio streams.
  11. Description
  12. -----------
  13. Base class for audio streams. Audio streams are used for sound effects and music playback, and support WAV (via :ref:`AudioStreamSample<class_AudioStreamSample>`) and OGG (via :ref:`AudioStreamOGGVorbis<class_AudioStreamOGGVorbis>`) file formats.
  14. Tutorials
  15. ---------
  16. - :doc:`../tutorials/audio/audio_streams`
  17. Methods
  18. -------
  19. +---------------------------+----------------------------------------------------------------------------+
  20. | :ref:`float<class_float>` | :ref:`get_length<class_AudioStream_method_get_length>` **(** **)** |const| |
  21. +---------------------------+----------------------------------------------------------------------------+
  22. Method Descriptions
  23. -------------------
  24. .. _class_AudioStream_method_get_length:
  25. - :ref:`float<class_float>` **get_length** **(** **)** |const|
  26. Returns the length of the audio stream in seconds.
  27. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  28. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  29. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`