public static class AudioRenderer.ChannelVolume extends Object
This class specifies the volume for the left and right audio channels to play pulse-code modulation (PCM) streams.
SystemCapability.Multimedia#AUDIO| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static float |
VOLUME_MAX |
Indicates the maximum volume.
|
static float |
VOLUME_MIN |
Indicates the minimum volume.
|
| 构造器 | 说明 |
|---|---|
ChannelVolume(float inputLeftVolume,
float inputRightVolume) |
A constructor used to create an
ChannelVolume instance and specify the left and right channel volume. |
public static final float VOLUME_MAX
public static final float VOLUME_MIN
public ChannelVolume(float inputLeftVolume,
float inputRightVolume)
ChannelVolume instance and specify the left and right channel volume.inputLeftVolume - Indicates the volume of the left audio channel.inputRightVolume - Indicates the volume of the right audio channel.