Added missing documentation to the source code in the Playdate bindings target.
This commit is contained in:
@@ -21,6 +21,7 @@ extension Sound {
|
||||
}
|
||||
}
|
||||
|
||||
/// Removes all events from the signal's timeline.
|
||||
public func clearEvents() {
|
||||
ControlSignal.api.pointee.clearEvents.unsafelyUnwrapped(pointer)
|
||||
}
|
||||
@@ -32,6 +33,7 @@ extension Sound {
|
||||
interpolate ? 1 : 0)
|
||||
}
|
||||
|
||||
/// Removes the event at `step`, if any.
|
||||
public func removeEvent(step: Int) {
|
||||
ControlSignal.api.pointee.removeEvent.unsafelyUnwrapped(pointer, Int32(step))
|
||||
}
|
||||
|
||||
@@ -22,18 +22,22 @@ extension Sound {
|
||||
}
|
||||
}
|
||||
|
||||
/// The attack time, in seconds.
|
||||
public func setAttack(_ attack: Float) {
|
||||
Envelope.api.pointee.setAttack.unsafelyUnwrapped(pointer, attack)
|
||||
}
|
||||
|
||||
/// The decay time, in seconds.
|
||||
public func setDecay(_ decay: Float) {
|
||||
Envelope.api.pointee.setDecay.unsafelyUnwrapped(pointer, decay)
|
||||
}
|
||||
|
||||
/// The sustain level, 0...1.
|
||||
public func setSustain(_ sustain: Float) {
|
||||
Envelope.api.pointee.setSustain.unsafelyUnwrapped(pointer, sustain)
|
||||
}
|
||||
|
||||
/// The release time, in seconds.
|
||||
public func setRelease(_ release: Float) {
|
||||
Envelope.api.pointee.setRelease.unsafelyUnwrapped(pointer, release)
|
||||
}
|
||||
@@ -66,6 +70,7 @@ extension Sound {
|
||||
Envelope.api.pointee.setRateScaling.unsafelyUnwrapped(pointer, scaling, start, end)
|
||||
}
|
||||
|
||||
/// The envelope's current value.
|
||||
public var value: Float {
|
||||
Envelope.api.pointee.getValue.unsafelyUnwrapped(pointer)
|
||||
}
|
||||
|
||||
@@ -89,6 +89,7 @@ extension Sound {
|
||||
LFO.api.pointee.setRandomSeed.unsafelyUnwrapped(pointer, seed)
|
||||
}
|
||||
|
||||
/// The LFO's current value.
|
||||
public var value: Float {
|
||||
LFO.api.pointee.getValue.unsafelyUnwrapped(pointer)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user