b6fdee8bfc
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>
26 lines
688 B
Swift
26 lines
688 B
Swift
// DSPSplitComplex.swift
|
|
// Lyrebird
|
|
//
|
|
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
// Portable mirror of Accelerate's split-complex descriptor: separate pointers
|
|
// to the real and imaginary component arrays. Only defined off Apple (on Apple
|
|
// the real type is re-exported by AccelerateShim.swift).
|
|
|
|
#if !canImport(Accelerate)
|
|
|
|
public struct DSPSplitComplex {
|
|
public var realp: UnsafeMutablePointer<Float>
|
|
public var imagp: UnsafeMutablePointer<Float>
|
|
public init(
|
|
realp: UnsafeMutablePointer<Float>,
|
|
imagp: UnsafeMutablePointer<Float>
|
|
) {
|
|
self.realp = realp
|
|
self.imagp = imagp
|
|
}
|
|
}
|
|
|
|
#endif
|