public void trimData( int maxLength )
    {
        if( audioData == null || maxLength == 0 )
            audioData = null;
        else if( audioData.length > maxLength )
        {
            byte[] trimmedArray = new byte[maxLength];
            System.arraycopy( audioData, 0, trimmedArray, 0,
                              maxLength );
            audioData = trimmedArray;
        }
    }