eq: soft load audio context
This commit is contained in:
parent
a37101e60e
commit
4618530aed
1 changed files with 6 additions and 0 deletions
|
|
@ -2,7 +2,13 @@ var {mapToScale} = require('../utils'),
|
|||
Plot = require('./plot'),
|
||||
Widget = require('../common/widget'),
|
||||
StaticProperties = require('../mixins/static_properties'),
|
||||
audioContext
|
||||
|
||||
try {
|
||||
audioContext = new AudioContext()
|
||||
} catch(e) {
|
||||
audioContext = new webkitAudioContext()
|
||||
}
|
||||
|
||||
|
||||
class Eq extends StaticProperties(Plot, {logScaleX: false, logScaleY:false}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue