2026-07-25 12:39:32 +02:00
|
|
|
extension Sound.Effect {
|
2026-09-18 12:45:39 +02:00
|
|
|
/// Processes up to 512 (`AUDIO_FRAMES_PER_CYCLE`) signed Q8.24 frames in place.
|
|
|
|
|
/// `right` is empty on mono channels; `bufferActive` is `false` if nothing was
|
|
|
|
|
/// written. Returns `true` if it changed the samples.
|
2026-09-18 12:06:21 +02:00
|
|
|
public typealias Processor = (_ left: inout MutableSpan<Int32>,
|
|
|
|
|
_ right: inout MutableSpan<Int32>,
|
2026-07-25 12:39:32 +02:00
|
|
|
_ bufferActive: Bool) -> Bool
|
|
|
|
|
}
|