fade(direction) {
    let audioConfig = { ...this.state.audioConfig };
    audioConfig.targetVolume =
      direction.toLowerCase() === 'up' ? this.state.audioConfig.maxVolume : 0;
    this.setState(
      {
        audioConfig,
        pausing: direction === 'down'
      },
      this.updateVolume
    );
  }
/**
   * Simple fade command to initiate the playing and pausing
   * in a more fluid method.
   */
Simple fade command to initiate the playing and pausing
in a more fluid method.
Simple fade command to initiate the playing and pausing in a more fluid method .
fade(direction) {
    let audioConfig = { ...this.state.audioConfig };
    audioConfig.targetVolume =
      direction.toLowerCase() === 'up' ? this.state.audioConfig.maxVolume : 0;
    this.setState(
      {
        audioConfig,
        pausing: direction === 'down'
      },
      this.updateVolume
    );
  }
fade ( direction ) { let audioConfig = { ... this . state . audioConfig } ; audioConfig . targetVolume = direction . toLowerCase ( ) === 'up' ? this . state . audioConfig . maxVolume : 0 ; this . setState ( { audioConfig , pausing : direction === 'down' } , this . updateVolume ) ; }
Simple fade command to initiate the playing and pausing
 in a more fluid method.
Simple fade command to initiate the playing and pausing in a more fluid method .