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 .