All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class guinea.player.VolumeLinear

java.lang.Object
   |
   +----guinea.player.Volume
           |
           +----guinea.player.VolumeLinear

public class VolumeLinear
extends Volume

Variable Index

· volume
The volume level in linear scale.

Constructor Index

· VolumeLinear(double)
Contruct a new Volume object that is in linear scale.
· VolumeLinear(Volume)
Contruct a new Volume object that is in linear scale.

Method Index

· dBVolume()
Get the volume level in decibel scale.
· linearVolume()
Get the volume level in linear scale.
· toLinear()
Convert this volume object to a volume level object in linear scale.
· toString()
Get a string representation of the volume level.

Variables

· volume
 protected double volume
The volume level in linear scale.

Constructors

· VolumeLinear
 public VolumeLinear(double volume)
Contruct a new Volume object that is in linear scale.

Parameters:
volume - the volume level in linear level.
· VolumeLinear
 public VolumeLinear(Volume vol)
Contruct a new Volume object that is in linear scale.

Parameters:
vol - a copy of volume object converted to linear scale

Methods

· dBVolume
 public double dBVolume()
Get the volume level in decibel scale.

Returns:
the volume in decibel scale as a double.
Overrides:
dBVolume in class Volume
· linearVolume
 public double linearVolume()
Get the volume level in linear scale.

Returns:
the volume in linear scale as a double.
Overrides:
linearVolume in class Volume
· toLinear
 public Volume toLinear()
Convert this volume object to a volume level object in linear scale.

Returns:
a Volume object in linear scale.
Overrides:
toLinear in class Volume
· toString
 public String toString()
Get a string representation of the volume level.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index