Methods Summary |
---|
public int | getLevel()Gets the level attribute of the AudioRenderer object
return level;
|
public void | init(BasicPlayer player)Description of the Method
this.player = player;
|
public boolean | isMuted()Gets the muted attribute of the AudioRenderer object
return muted;
|
public int | setLevel(int ll)Sets the level attribute of the AudioRenderer object
int newl;
if (ll < 0) {
ll = 0;
} else if (ll > 100) {
ll = 100;
}
if (!muted) {
newl = player.doSetLevel(ll);
if (newl != level) {
level = newl;
player.sendEvent(PlayerListener.VOLUME_CHANGED, this);
}
}
return level;
|
public void | setMute(boolean mute)Sets the mute attribute of the AudioRenderer object
if (mute && !muted) {
player.doSetLevel(0);
muted = true;
player.sendEvent(PlayerListener.VOLUME_CHANGED, this);
} else if (!mute && muted) {
level = player.doSetLevel(level);
muted = false;
player.sendEvent(PlayerListener.VOLUME_CHANGED, this);
}
|