AudioStream.xml 791 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="AudioStream" inherits="Resource" category="Core" version="3.1">
  3. <brief_description>
  4. Base class for audio streams.
  5. </brief_description>
  6. <description>
  7. 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.
  8. </description>
  9. <tutorials>
  10. <link>https://docs.godotengine.org/en/latest/tutorials/audio/audio_streams.html</link>
  11. </tutorials>
  12. <demos>
  13. </demos>
  14. <methods>
  15. <method name="get_length" qualifiers="const">
  16. <return type="float">
  17. </return>
  18. <description>
  19. Returns the length of the audio stream in seconds.
  20. </description>
  21. </method>
  22. </methods>
  23. <constants>
  24. </constants>
  25. </class>