AudioStream.xml 1.1 KB

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="AudioStream" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  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 title="Audio streams">$DOCS_URL/tutorials/audio/audio_streams.html</link>
  11. <link title="Audio Generator Demo">https://godotengine.org/asset-library/asset/526</link>
  12. <link title="Audio Mic Record Demo">https://godotengine.org/asset-library/asset/527</link>
  13. <link title="Audio Spectrum Demo">https://godotengine.org/asset-library/asset/528</link>
  14. </tutorials>
  15. <methods>
  16. <method name="get_length" qualifiers="const">
  17. <return type="float" />
  18. <description>
  19. Returns the length of the audio stream in seconds.
  20. </description>
  21. </method>
  22. </methods>
  23. <constants>
  24. </constants>
  25. </class>