You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
439 B

var VisioTones = {
context: null,
o: null,
g: null,
init: function() {
this.context = new AudioContext();
this.o = this.context.createOscillator();
this.g = this.context.createGain();
this.o.connect(this.g);
this.g.connect(this.context.destination);
},
ringingTone: function() {
this.o.frequency.value = 1440.0;
this.o.start(0);
},
}
VisioTones.init();