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 ) ; } } }
Update the sound alignment .