code: public static int getFormatDepth(SampleFormat format) {
  		switch (format) {
  			case U8:
  			case U8P:
  				return 1;
  			case S16:
  			case S16P:
  				return 2;
  			case S32:
  			case S32P:
  				return 4;
  			case FLT:
  			case FLTP:
  				return 4;
  			case DBL:
  			case DBLP:
  				return 8;
  
  			default:
  				return 0;
  		}
  	}
docs: Get number of bytes per sample for specified sample format.
  
  @param format the sample format.
  
  @return number of bytes per sample, or {@code zero} if sample format is unknown.