tritonus-share/src/main/java/org/tritonus/share/sampled/FloatSampleTools.java
/**
	 * Return a string representation of this format
	 */
Return a string representation of this format
Return a string representation of this format
static String formatType2Str(int formatType) {
		String res = "" + formatType + ": ";
		switch (formatType & F_SAMPLE_WIDTH_MASK) {
		case F_8:
			res += "8bit";
			break;
		case F_16:
			res += "16bit";
			break;
		case F_24_3:
			res += "24_3bit";
			break;
		case F_24_4:
			res += "24_4bit";
			break;
		case F_32:
			res += "32bit";
			break;
		}
		res += ((formatType & F_SIGNED) == F_SIGNED) ? " signed" : " unsigned";
		if ((formatType & F_SAMPLE_WIDTH_MASK) != F_8) {
			res += ((formatType & F_BIGENDIAN) == F_BIGENDIAN) ? " big endian"
					: " little endian";
		}
		return res;
	}
static String formatType2Str ( int formatType ) { String res = "" + formatType + ": " ; switch ( formatType & F_SAMPLE_WIDTH_MASK ) { case F_8 : res += "8bit" ; break ; case F_16 : res += "16bit" ; break ; case F_24_3 : res += "24_3bit" ; break ; case F_24_4 : res += "24_4bit" ; break ; case F_32 : res += "32bit" ; break ; } res += ( ( formatType & F_SIGNED ) == F_SIGNED ) ? " signed" : " unsigned" ; if ( ( formatType & F_SAMPLE_WIDTH_MASK ) != F_8 ) { res += ( ( formatType & F_BIGENDIAN ) == F_BIGENDIAN ) ? " big endian" : " little endian" ; } return res ; }
Return a string representation of this format
Return a string representation of this format