}
}
audioBounds = new BoundingSphere((float) extent, new Vector3f());
Spatializer spatializer = new FullVolumeSpatializer(extent);
spatializer.setAttenuator(volume);
return spatializer;
} else {
audioBounds = new BoundingSphere((float) extent, new Vector3f());
}
double fullVolumeRadius = fullVolumeAreaPercent / 100. * extent;
double falloff = .92 + ((50 - this.falloff) * ((1 - .92) / 50));
if (falloff >= 1) {
falloff = .999;
}
logger.warning("id " + groupId + " cellRadius " + cellRadius
+ " extent " + extent + " use cell bounds " + useCellBounds
+ " fvr " + fullVolumeRadius + " falloff "
+ falloff + " volume " + volume);
if (distanceAttenuated == true) {
DefaultSpatializer spatializer = new DefaultSpatializer();
spatializer.setFullVolumeRadius(fullVolumeRadius);
spatializer.setZeroVolumeRadius(extent);
spatializer.setAttenuator(volume);
FalloffFunction falloffFunction = spatializer.getFalloffFunction();
falloffFunction.setFalloff(falloff);
spatializer.setAttenuator(volume);
return spatializer;
}
Spatializer spatializer = new FullVolumeSpatializer(extent);
spatializer.setAttenuator(volume);
return spatializer;
}