AudioStream
Inherits: Resource < Reference < Object
Inherited By: AudioStreamGenerator, AudioStreamMP3, AudioStreamMicrophone, AudioStreamOGGVorbis, AudioStreamRandomPitch, 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 AudioStreamSample) and OGG (via AudioStreamOGGVorbis) file formats.
Tutorials
- 音频流
- https://godotengine.org/asset-library/asset/526
- https://godotengine.org/asset-library/asset/527
- https://godotengine.org/asset-library/asset/528
Methods
float | get_length ( ) const |
Method Descriptions
- float get_length ( ) const
Returns the length of the audio stream in seconds.