Adopted Span and MutableSpan for buffers across the library to adapt to Swift 6.4.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
extension Sound.CallbackSource {
|
||||
/// Fills the sample buffers and returns `true` if output was
|
||||
/// produced. `right` is non-nil only for stereo sources.
|
||||
public typealias Callback = (_ left: UnsafeMutableBufferPointer<Int16>,
|
||||
_ right: UnsafeMutableBufferPointer<Int16>?) -> Bool
|
||||
/// produced. `right` is empty for mono sources.
|
||||
public typealias Callback = (_ left: inout MutableSpan<Int16>,
|
||||
_ right: inout MutableSpan<Int16>) -> Bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user