AudioStream

Inherits: Resource < RefCounted < 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.

Methods

float

_get_length ( ) virtual const

String

_get_stream_name ( ) virtual const

AudioStreamPlayback

_instance_playback ( ) virtual const

bool

_is_monophonic ( ) virtual const

float

get_length ( ) const

bool

is_monophonic ( ) const

Method Descriptions

  • float _get_length ( ) virtual const


  • String _get_stream_name ( ) virtual const



  • bool _is_monophonic ( ) virtual const


  • float get_length ( ) const

Returns the length of the audio stream in seconds.


  • bool is_monophonic ( ) const

Returns true if this audio stream only supports monophonic playback, or false if the audio stream supports polyphony.