Stores audio data loaded from WAV files.
AudioStreamSample stores sound samples loaded from WAV files. To play the stored sound, use an [AudioStreamPlayer] (for non-positional audio) or [AudioStreamPlayer2D]/[AudioStreamPlayer3D] (for positional audio). The sound can be looped.
This class can also be used to store dynamically-generated PCM audio data.
Saves the AudioStreamSample as a WAV file to [code]path[/code]. Samples with IMA ADPCM format can't be saved.
[b]Note:[/b] A [code].wav[/code] extension is automatically appended to [code]path[/code] if it is missing.
Contains the audio data in bytes.
Audio format. See [code]FORMAT_*[/code] constants for values.
Loop start in bytes.
Loop end in bytes.
Loop mode. See [code]LOOP_*[/code] constants for values.
The sample rate for mixing this audio.
If [code]true[/code], audio is stereo. Default value: [code]false[/code].
8-bit audio codec.
16-bit audio codec.
Audio is compressed using IMA ADPCM.
Audio does not loop.
Audio loops the data between [member loop_begin] and [member loop_end] playing forward only.
Audio loops the data between [member loop_begin] and [member loop_end] playing back and forth.
Audio loops the data between [member loop_begin] and [member loop_end] playing backward only.