Instance Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
format
Audio format. See Format
constants for values.
final var format: AudioStreamWAV.Format { get set }
Other members in extension
Types
Type members
Instance members
var data: PackedByteArray
Contains the audio data in bytes.
var loopBegin: Int32
The loop start point (in number of samples, relative to the beginning of the sample). This information will be imported automatically from the WAV file if present.
var loopEnd: Int32
The loop end point (in number of samples, relative to the beginning of the sample). This information will be imported automatically from the WAV file if present.
var loopMode: AudioStreamWAV.LoopMode
The loop mode. This information will be imported automatically from the WAV file if present. See
LoopMode
constants for values.var mixRate: Int32
The sample rate for mixing this audio. Higher values require more storage space, but result in better quality.
var stereo: Bool
If
true
, audio is stereo.func saveToWav(path: String
) -> GodotError Saves the AudioStreamWAV as a WAV file to
path
. Samples with IMA ADPCM format can’t be saved.