Files
josh b6fdee8bfc Lyrebird 2.0.0 — Linux support
Consolidated release: the cross-platform Linux port (engine, generators, CLI,
REPL, NRT, portable DSP), live ALSA audio + ALSA MIDI + POSIX OSC + portable
WAV codec, the GTK4 GUI (LyrebirdUI on the SwiftOpenUI backend), and the Linux
live-coding scratchpad (LiveCompile). Apple platforms unchanged; all additive.
See RELEASES.md and LINUX_README.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-09-10 21:09:11 -07:00

28 lines
695 B
Swift

// DSPComplex.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
// Portable mirror of Accelerate's interleaved single-precision complex value.
// Only defined off Apple (on Apple the real type is re-exported by
// AccelerateShim.swift). Layout is two contiguous `Float`s (8 bytes, no
// padding) so `vDSP_ctoz`/`vDSP_ztoc` may reinterpret a `DSPComplex*` as an
// interleaved `Float*`.
#if !canImport(Accelerate)
public struct DSPComplex {
public var real: Float
public var imag: Float
public init(
real: Float = 0,
imag: Float = 0
) {
self.real = real
self.imag = imag
}
}
#endif