public static class SoundPlayer.AudioVolumes extends Object
This class specifies the volume for the front left, front right, rear left, rear right, central, and low-frequency effects (LFE) audio channels to play sounds.
SystemCapability.Multimedia#AUDIO| 构造器 | 说明 |
|---|---|
AudioVolumes() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
float |
getCentralVolume() |
Obtains the volume of the central channel.
|
float |
getFrontLeftVolume() |
Obtains the volume of the front left channel.
|
float |
getFrontRightVolume() |
Obtains the volume of the front right channel.
|
float |
getRearLeftVolume() |
Obtains the volume of the rear left channel.
|
float |
getRearRightVolume() |
Obtains the volume of the rear right channel.
|
float |
getSubwooferVolume() |
Obtains the volume of the bass speaker.
|
void |
setCentralVolume(float centralVolume) |
Sets the volume of the central channel.
|
void |
setFrontLeftVolume(float frontLeftVolume) |
Sets the volume of the front left channel.
|
void |
setFrontRightVolume(float frontRightVolume) |
Sets the volume of the front right channel.
|
void |
setRearLeftVolume(float rearLeftVolume) |
Sets the volume of the rear left channel.
|
void |
setRearRightVolume(float rearRightVolume) |
Sets the volume of the rear right channel.
|
void |
setSubwooferVolume(float subwooferVolume) |
Sets the volume of the bass speaker.
|
public float getFrontLeftVolume()
public void setFrontLeftVolume(float frontLeftVolume)
frontLeftVolume - Indicates the volume of the front left channel to set.public float getFrontRightVolume()
public void setFrontRightVolume(float frontRightVolume)
frontRightVolume - Indicates the volume of the front right channel to set.public float getRearLeftVolume()
public void setRearLeftVolume(float rearLeftVolume)
rearLeftVolume - Indicates the volume of the rear left channel to set.public float getRearRightVolume()
public void setRearRightVolume(float rearRightVolume)
rearRightVolume - Indicates the volume of the rear right channel.public float getCentralVolume()
public void setCentralVolume(float centralVolume)
centralVolume - Indicates the volume of the central channel.public float getSubwooferVolume()
public void setSubwooferVolume(float subwooferVolume)
subwooferVolume - Indicates the volume of the bass speaker to set.