-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix missing typescript types - Use Safari 13 compatible OfflineAudioContext constructor - this may prove pointless due to lack of < 44100 sample rate support, but is an easier starting point to try things out.
- Loading branch information
1 parent
4f1baa3
commit ef44717
Showing
6 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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,15 +1,10 @@ | ||
import { EmscriptenModule } from "./board/wasm"; | ||
import { SimulatorEmscriptenModule } from "./board/wasm"; | ||
|
||
global { | ||
// In reality this is a local variable as jshal.js is splatted into the generated code. | ||
declare const Module: EmscriptenModule; | ||
declare const Module: SimulatorEmscriptenModule; | ||
declare const LibraryManager: { | ||
library: any; | ||
}; | ||
|
||
// Just what we need. There are lots more Emscripten helpers available. | ||
declare function UTF8ToString(ptr: number, len?: number); | ||
declare function stringToUTF8(s: string, buf: number, len: number); | ||
declare function lengthBytesUTF8(s: string); | ||
declare function mergeInto(library: any, functions: Record<string, function>); | ||
} |
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