Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
Format
AudioStreamWAV.swift:16enum Format
Cases
case format8Bits
8-bit audio codec.
case format16Bits
16-bit audio codec.
case imaAdpcm
Audio is compressed using IMA ADPCM.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (10) members.
Types
Type members
Instance members
var data: PackedByteArray
Contains the audio data in bytes.
var format: AudioStreamWAV.Format
Audio format. See
Format
constants for values.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.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.