Browse Source

Updated comment in sound.ts to add clarity

Dave Solares 6 năm trước cách đây
mục cha
commit
917a03834b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {