Instance Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
data
Contains the audio data in bytes.
AudioStreamMP3.swift:20final var data: PackedByteArray { get set }
You can load a file without having to import it beforehand using the code snippet below. Keep in mind that this snippet loads the whole file into memory and may not be ideal for huge files (hundreds of megabytes or more).
Other members in extension
Type members
Instance members
var barBeats: Int32
var beatCount: Int32
var bpm: Double
var loop: Bool
If
true
, the stream will automatically loop when it reaches the end.var loopOffset: Double
Time in seconds at which the stream starts after being looped.