Skip to content

Commit

Permalink
Add a few comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Dzialocha committed Dec 1, 2017
1 parent 9dff4d5 commit 820cf54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions automaton/scripts/instrument/SynthesizerInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default class SynthesizerInterface {

const { context, compressorNode } = this.audio

// We need to bring the script processor node to class scope for safari gc
this.scriptProcessorNode = context.createScriptProcessor(BUFFER_SIZE, 1, 1)

// Connect audio nodes
Expand All @@ -59,6 +60,7 @@ export default class SynthesizerInterface {
}
})

// CopyToChannel is not supported in Safari
if ('copyToChannel' in event.outputBuffer) {
event.outputBuffer.copyToChannel(buffer, 0, 0)
} else {
Expand Down

0 comments on commit 820cf54

Please sign in to comment.