public static AudioFrame make(final AudioFormat audioFormat) {
    try {
      return new AudioFrame(audioFormat);
    } catch (LineUnavailableException e) {
      log.error("Could not get audio data line: {}", e.getMessage());
      return null;
    }
  }
public static AudioFrame make(final AudioFormat audioFormat) {
    try {
      return new AudioFrame(audioFormat);
    } catch (LineUnavailableException e) {
      log.error("Could not get audio data line: {}", e.getMessage());
      return null;
    }
  }
public static AudioFrame make ( final AudioFormat audioFormat ) { try { return new AudioFrame ( audioFormat ) ; } catch ( LineUnavailableException e ) { log . error ( "Could not get audio data line: {}" , e . getMessage ( ) ) ; return null ; } }
Get a connection to the speaker, if available.
@param audioFormat The java audio format that we will use.
@return A new audio format, or null if we cannot create one.
Get a connection to the speaker if available .