code: public static AudioFormat createAudioFormat(String name, int sampleRate) {
          AudioFormat fmt = createAudioFormat(new EncodingName(name));
          fmt.setSampleRate(sampleRate);
          return fmt;
      }
docs: Creates new format descriptor
  
  @param name the encoding
  @param sampleRate sample rate value in Hertz