浏览代码

Updated comment in sound.ts to add clarity

Dave Solares 6 年之前
父节点
当前提交
917a03834b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Audio/sound.ts

+ 1 - 1
src/Audio/sound.ts

@@ -779,7 +779,7 @@ export class Sound {
     /**
      * Sets a dedicated volume for this sounds
      * @param newVolume Define the new volume of the sound
-     * @param time Define in how long the sound should be at this value
+     * @param time Define time for gradual change to new volume
      */
     public setVolume(newVolume: number, time?: number): void {
         if (Engine.audioEngine.canUseWebAudio && this._soundGain) {