mimic-sussex / sema

Sema – A Playground for Live Coding Music and Machine Learning
https://sema.codes
MIT License
153 stars 51 forks source link

MouseXY SharedArrayBuffer is causing "Error initialising engine" on Safari Technology Preview #301

Open frantic0 opened 3 years ago

frantic0 commented 3 years ago

When audio engine is initialized we create a SharedArrayBuffer to support the {}mouseX {}mouseY language elements.

// Subscribe async messages from the Audio Worklet Processor scope
// this.engine.subscribeAsyncMessage(this.onProcessorAsyncMessage)
const channelId = 'mxy',
        ttype = 'mouseXY',
        blockSize = 2

// Create SharedArrayBuffer for mouse data
this.engine.createSharedBuffer(channelId, ttype, blockSize)

this is causing an error initialising the engine and should be extracted to an function that depends on the interface click.