/**
* Represents a control for the relative balance of a stereo signal between two stereo speakers. The valid range of values is -1.0 (left channel
* only) to 1.0 (right channel only). The default is 0.0 (centered).
*
* @param fBalance
* the new balance
*/
public void setBalance(float fBalance) {
if (hasControl(FloatControl.Type.BALANCE, balanceControl) && fBalance >= -1.0 && fBalance <= 1.0)
balanceControl.setValue(fBalance);
else
try {
throw new StreamPlayerException(StreamPlayerException.PlayerException.BALANCE_CONTROL_NOT_SUPPORTED);
} catch (StreamPlayerException ex) {
logger.log(Level.WARNING, ex.getMessage(), ex);
}
}
StreamPlayer.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:java-stream-player
作者:
评论列表
文章目录