Browse Source

Merge pull request #6461 from PolygonalSun/dave/FixVolumeComment

Updated comment in sound.ts to add clarity
David Catuhe 6 years ago
parent
commit
d0aa139712
1 changed files with 1 additions and 1 deletions
  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
      * Sets a dedicated volume for this sounds
      * @param newVolume Define the new volume of the sound
      * @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 {
     public setVolume(newVolume: number, time?: number): void {
         if (Engine.audioEngine.canUseWebAudio && this._soundGain) {
         if (Engine.audioEngine.canUseWebAudio && this._soundGain) {