src/plugins/rayo/src/java/com/sun/voip/AudioConversion.java
/**
     * Convert a ulaw byte array to a int array of linearData.
     *
     * @param ulawData   byte array with ulaw data
     * @param ulawOffset offset from the start of ulawData
     * @param length	 length of ulawData
     * @param linearData int array in which linear data will be placed
     * @param linearOffset offset from the start of linearData
     */
Convert a ulaw byte array to a int array of linearData.
Convert a ulaw byte array to a int array of linearData .
public static void ulawToLinear(byte[] ulawData, int ulawOffset, int length,
            int[] linearData) {
	int inIx = ulawOffset;
        for (int i = 0; i < length; i++) {
	    linearData[i] = ulawToLinearTable[ulawData[inIx] + 128];
	    inIx++;
	}
    }
public static void ulawToLinear ( byte [ ] ulawData , int ulawOffset , int length , int [ ] linearData ) { int inIx = ulawOffset ; for ( int i = 0 ; i < length ; i ++ ) { linearData [ i ] = ulawToLinearTable [ ulawData [ inIx ] + 128 ] ; inIx ++ ; } }
Convert a ulaw byte array to a int array of linearData.
Convert a ulaw byte array to a int array of linearData .