Files
javier 91783deb7b
CI / Build & test (macOS) (push) Has been cancelled
CI / Embedded Swift cross-compile (push) Has been cancelled
Documentation / deploy (push) Has been cancelled
Added missing documentation to the source code in the Playdate bindings target.
2026-07-25 12:55:53 +02:00

21 lines
607 B
Swift

internal import CPlaydate
extension Sound.Synth {
/// The synth's waveform.
public enum Waveform: UInt32, Sendable {
case square = 0
case triangle = 1
case sine = 2
case noise = 3
case sawtooth = 4
/// A Pocket Operator-style phase-distortion waveform.
case poPhase = 5
/// A Pocket Operator-style digital waveform.
case poDigital = 6
/// A Pocket Operator-style VOSIM (voice simulation) waveform.
case poVosim = 7
var cValue: SoundWaveform { SoundWaveform(SoundWaveform.RawValue(rawValue)) }
}
}