code: private static void updateAlignment(DataLine dataLine, Align alignment)
      {
          if (dataLine.isControlSupported(Type.PAN))
          {
              final FloatControl pan = (FloatControl) dataLine.getControl(Type.PAN);
              switch (alignment)
              {
                  case CENTER:
                      pan.setValue(0.0F);
                      break;
                  case RIGHT:
                      pan.setValue(1.0F);
                      break;
                  case LEFT:
                      pan.setValue(-1.0F);
                      break;
                  default:
                      throw new LionEngineException(alignment);
              }
          }
      }
docs: Update the sound alignment.
  
  @param dataLine Audio source data.
  @param alignment Alignment value.