提交 a63f1bec 编写于 作者: M Mr.doob

Audio: Removed backwards compatibility.

上级 742c7c07
......@@ -2,19 +2,6 @@
* @author mrdoob / http://mrdoob.com/
*/
Object.defineProperties( THREE.Audio.prototype, {
setRefDistance: {
value: function () {
console.warn( 'THREE.Audio: .setRefDistance() has been moved to THREE.PositionalAudio.' );
}
},
setRolloffFactor: {
value: function () {
console.warn( 'THREE.Audio: .setRolloffFactor() has been moved to THREE.PositionalAudio.' );
}
}
} );
Object.defineProperties( THREE.Box2.prototype, {
isIntersectionBox: {
value: function ( box ) {
......
......@@ -9,6 +9,7 @@ THREE.AudioListener = function () {
this.type = 'AudioListener';
this.context = new ( window.AudioContext || window.webkitAudioContext )();
this.gain = this.context.createGain();
this.gain.connect( this.context.destination );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册