2026-07-25 12:39:32 +02:00
|
|
|
extension Sound.CallbackSource {
|
2026-09-18 12:45:39 +02:00
|
|
|
/// Fills `left` and, if stereo, `right` (else empty) with 16-bit samples.
|
|
|
|
|
/// Returns `false` if the source was silent this cycle.
|
2026-09-18 12:06:21 +02:00
|
|
|
public typealias Callback = (_ left: inout MutableSpan<Int16>,
|
|
|
|
|
_ right: inout MutableSpan<Int16>) -> Bool
|
2026-07-25 12:39:32 +02:00
|
|
|
}
|