logger.fine("GOT Volume message: call " + softphoneCallID
+ " volume " + volume + " other callID " + otherCallID);
VoiceManager vm = AppContext.getManager(VoiceManager.class);
Player softphonePlayer = vm.getPlayer(softphoneCallID);
if (softphonePlayer == null) {
logger.warning("Can't find softphone player, callID "
+ softphoneCallID);
return;
}
Player player = vm.getPlayer(otherCallID);
if (player == null) {
logger.warning("Can't find player for callID " + otherCallID);
return;
}
if (msg.isSetVolume() == false) {
AudioTreatmentComponentMO audioTreatmentComponentMO =
cellMO.getComponent(AudioTreatmentComponentMO.class);
msg.setVolume(audioTreatmentComponentMO.getVolume());
sender.send(clientID, msg);
logger.fine("Sending vol message " + msg.getVolume());
return;
}
if (volume == 1.0) {
softphonePlayer.removePrivateSpatializer(player);
return;
}
VoiceManagerParameters parameters = vm.getVoiceManagerParameters();
Spatializer spatializer;
spatializer = player.getPublicSpatializer();
if (spatializer != null) {
spatializer = (Spatializer) spatializer.clone();
} else {
if (player.getSetup().isLivePlayer) {
spatializer = (Spatializer) parameters.livePlayerSpatializer.clone();
} else {
spatializer = (Spatializer) parameters.stationarySpatializer.clone();
}
}