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

Audio.d.ts: Added setLoopStart() and setLoopEnd()

上级 b9e5def7
......@@ -45,7 +45,9 @@ export class Audio extends Object3D {
setPlaybackRate( value: number ): this;
getPlaybackRate(): number;
getLoop(): boolean;
setLoop( value: boolean ): void;
setLoop( value: boolean ): this;
setLoopStart( value: number ): this;
setLoopEnd( value: number ): this;
getVolume(): number;
setVolume( value: number ): this;
/**
......
......@@ -341,21 +341,21 @@ Audio.prototype = Object.assign( Object.create( Object3D.prototype ), {
return this;
},
setLoopStart: function ( value ) {
this.loopStart = value;
return this;
},
setLoopEnd: function ( value ) {
this.loopEnd = value;
return this;
},
getVolume: function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册