|
1 | 1 | diff --git a/Sources/WebAudio/Generated.swift b/Sources/WebAudio/Generated.swift |
2 | | -index 35bbf34..770a8e8 100644 |
| 2 | +index fc5553f..590831f 100644 |
3 | 3 | --- a/Sources/WebAudio/Generated.swift |
4 | 4 | +++ b/Sources/WebAudio/Generated.swift |
5 | | -@@ -194,7 +194,8 @@ public class AudioBufferSourceNode: AudioScheduledSourceNode { |
| 5 | +@@ -195,7 +195,8 @@ public class AudioBufferSourceNode: AudioScheduledSourceNode { |
6 | 6 | @ReadWriteAttribute |
7 | 7 | public var loopEnd: Double |
8 | | - |
| 8 | + |
9 | 9 | - @inlinable override public func start(when: Double? = nil, offset: Double? = nil, duration: Double? = nil) { |
10 | 10 | + // `override` removed since the superclass function has fewer parameters |
11 | 11 | + @inlinable func start(when: Double? = nil, offset: Double? = nil, duration: Double? = nil) { |
12 | 12 | let this = jsObject |
13 | 13 | _ = this[Strings.start].function!(this: this, arguments: [_toJSValue(when), _toJSValue(offset), _toJSValue(duration)]) |
14 | 14 | } |
| 15 | +@@ -492,7 +493,7 @@ public class AudioNode: EventTarget { |
| 16 | + super.init(unsafelyWrapping: jsObject) |
| 17 | + } |
| 18 | + |
| 19 | +- @inlinable public func connect(destinationNode: AudioNode, output: UInt32? = nil, input: UInt32? = nil) -> Self { |
| 20 | ++ @discardableResult @inlinable public func connect<NodeType: AudioNode>(destinationNode: NodeType, output: UInt32? = nil, input: UInt32? = nil) -> NodeType { |
| 21 | + let this = jsObject |
| 22 | + return this[Strings.connect].function!(this: this, arguments: [_toJSValue(destinationNode), _toJSValue(output), _toJSValue(input)]).fromJSValue()! |
| 23 | + } |
0 commit comments