Files
playdate-kit/Sources/PlaydateKit/Sound/Effect/Aliases/Effect.Processor.swift
T

10 lines
487 B
Swift
Raw Normal View History

extension Sound.Effect {
/// Processes up to `AUDIO_FRAMES_PER_CYCLE` sample frames in signed
/// 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>,
_ bufferActive: Bool) -> Bool
}