AudioStreamSynchronized
Stream that can be fitted with sub-streams, which will be played in-sync.
AudioStreamSynchronized.swift:17class AudioStreamSynchronized
This is a stream that can be fitted with sub-streams, which will be played in-sync. The streams being at exactly the same time when play is pressed, and will end when the last of them ends. If one of the sub-streams loops, then playback will continue.
Superclasses
class AudioStream
Base class for audio streams.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
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 Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Type members
static let maxStreams: Int
Maximum amount of streams that can be synchrohized.
class var godotClassName: StringName
Instance members
var streamCount: Int32
Set the total amount of streams that will be played back synchronized.
func getSyncStream(streamIndex: Int32
) -> AudioStream? Get one of the synchronized streams, by index.
func getSyncStreamVolume(streamIndex: Int32
) -> Double Get the volume of one of the synchronized streams, by index.
func setSyncStream(streamIndex: Int32, audioStream: AudioStream?
) Set one of the synchronized streams, by index.
func setSyncStreamVolume(streamIndex: Int32, volumeDb: Double
) Set the volume of one of the synchronized streams, by index.