/* */ }
/* */ else {
/* 2744 */ Point2f[] attenuation = new Point2f[arraySize];
/* 2745 */ Point2f[] backAttenuation = new Point2f[arraySize];
/* 2746 */ for (int i = 0; i < arraySize; i++) {
/* 2747 */ attenuation[i] = new Point2f();
/* 2748 */ backAttenuation[i] = new Point2f();
/* */ }
/* 2750 */ cnSound.getDistanceGain(attenuation, backAttenuation);
/* 2751 */ double[] frontDistance = new double[arraySize];
/* 2752 */ float[] frontGain = new float[arraySize];
/* 2753 */ double[] backDistance = new double[arraySize];
/* 2754 */ float[] backGain = new float[arraySize];
/* 2755 */ for (int i = 0; i < arraySize; i++) {
/* 2756 */ frontDistance[i] = attenuation[i].x;
/* 2757 */ frontGain[i] = attenuation[i].y;
/* 2758 */ backDistance[i] = backAttenuation[i].x;
/* 2759 */ backGain[i] = backAttenuation[i].y;
/* */ }
/* 2761 */ this.audioDevice3D.setDistanceGain(index, frontDistance, frontGain, backDistance, backGain);
/* */ }
/* */
/* */ }
/* 2765 */ else if ((sound instanceof PointSoundRetained)) {
/* 2766 */ PointSoundRetained ptSound = (PointSoundRetained)sound;
/* */
/* 2770 */ int arraySize = ptSound.getDistanceGainLength();
/* 2771 */ if (arraySize == 0)
/* */ {
/* 2773 */ this.audioDevice3D.setDistanceGain(index, null, null, null, null);
/* */ }
/* */ else {
/* 2776 */ Point2f[] attenuation = new Point2f[arraySize];
/* 2777 */ for (int i = 0; i < arraySize; i++)
/* 2778 */ attenuation[i] = new Point2f();
/* 2779 */ ptSound.getDistanceGain(attenuation);
/* 2780 */ double[] frontDistance = new double[arraySize];
/* 2781 */ float[] frontGain = new float[arraySize];
/* 2782 */ for (int i = 0; i < arraySize; i++) {
/* 2783 */ frontDistance[i] = attenuation[i].x;