}
@Override
public void openAudio(int port) {
try {
AudioManager am = AudioManager.getManager(serverIP, port);
if (am == null) {
JOptionPane.showMessageDialog(this, "You're already in a VoIP.", "Audio error", JOptionPane.ERROR_MESSAGE);
} else {
am.setVisible(true);
}
} catch (IOException ex) {
Logger.getLogger(ChatroomClient.class.getName()).log(Level.SEVERE, null, ex);
} catch (LineUnavailableException ex) {
Logger.getLogger(ChatroomClient.class.getName()).log(Level.SEVERE, null, ex);