2026-07-25 12:39:32 +02:00
|
|
|
extension Sound.Effect {
|
|
|
|
|
/// Processes up to `AUDIO_FRAMES_PER_CYCLE` sample frames in signed
|
2026-09-18 12:06:21 +02:00
|
|
|
/// Q8.24 format. `right` is empty when the channel is mono.
|
|
|
|
|
/// `bufferActive` is `false` when the input buffer is silent. Returns
|
|
|
|
|
/// `true` if the effect produced output.
|
|
|
|
|
public typealias Processor = (_ left: inout MutableSpan<Int32>,
|
|
|
|
|
_ right: inout MutableSpan<Int32>,
|
2026-07-25 12:39:32 +02:00
|
|
|
_ bufferActive: Bool) -> Bool
|
|
|
|
|
}
|