File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " spessasynth_lib" ,
3- "version" : " 4.2.10 " ,
3+ "version" : " 4.2.11 " ,
44 "description" : " MIDI and SoundFont2/DLS library for the browsers with no compromises" ,
55 "type" : " module" ,
66 "main" : " dist/index.js" ,
Original file line number Diff line number Diff line change @@ -5,11 +5,6 @@ import type { PassedProcessorParameters } from "./synthesizer/types.ts";
55import { WorkletSynthesizerCore } from "./synthesizer/worklet/worklet_synthesizer_core.ts" ;
66
77class WorkletSynthesizerProcessor extends AudioWorkletProcessor {
8- public readonly process : (
9- inputs : Float32Array [ ] [ ] ,
10- outputs : Float32Array [ ] [ ] ,
11- parameters : Record < string , Float32Array >
12- ) => boolean ;
138 private readonly core : WorkletSynthesizerCore ;
149
1510 public constructor ( options : {
@@ -22,7 +17,11 @@ class WorkletSynthesizerProcessor extends AudioWorkletProcessor {
2217 this . port ,
2318 options . processorOptions
2419 ) ;
25- this . process = this . core . process . bind ( this . core ) ;
20+ }
21+
22+ // Don't bind, do it like this for it to work with chrome 109
23+ public process ( inputs : Float32Array [ ] [ ] , outputs : Float32Array [ ] [ ] ) {
24+ return this . core . process ( inputs , outputs ) ;
2625 }
2726}
2827
You can’t perform that action at this time.
0 commit comments