-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Audio. Separate handle for
AudioWorklet
- Loading branch information
Showing
3 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...n/generated/web/worklets/WorkletHandle.kt → ...generated/web/audio/AudioWorkletHandle.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// Automatically generated - do not modify! | ||
|
||
package web.worklets | ||
package web.audio | ||
|
||
import js.module.ModuleHandle | ||
|
||
sealed external interface WorkletHandle : | ||
sealed external interface AudioWorkletHandle : | ||
ModuleHandle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
package web.audio | ||
|
||
import web.worklets.WorkletHandle | ||
import web.worklets.internal.createWorklet | ||
|
||
fun audioWorklet( | ||
block: (self: AudioWorkletGlobalScope) -> Unit, | ||
): WorkletHandle = | ||
): AudioWorkletHandle = | ||
createWorklet("AudioWorkletGlobalScope", block) |
6 changes: 3 additions & 3 deletions
6
kotlin-browser/src/jsMain/kotlin/web/worklets/internal/createWorklet.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters