Select DSound for windows and JavaSound for others

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@7626 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Thiago Camargo
2007-03-21 16:55:38 +00:00
committed by thiago
parent 36c4c62f27
commit a7e5db3eb8

View File

@ -33,6 +33,7 @@ import org.jivesoftware.spark.ui.rooms.ChatRoomImpl;
import org.jivesoftware.spark.util.SwingWorker;
import org.jivesoftware.spark.util.log.Log;
import org.jivesoftware.sparkplugin.JingleStateManager.JingleRoomState;
import org.jivesoftware.Spark;
import javax.swing.*;
import javax.swing.text.BadLocationException;
@ -80,8 +81,11 @@ public class JinglePlugin implements Plugin, JingleSessionListener, Phone {
JingleTransportManager transportManager = new ICETransportManager(SparkManager.getConnection(), stunServer, stunPort);
// if running on Windows use Direct Sound for better performance
String locator = Spark.isWindows() ? "dsound://" : "javasound://";
MultiMediaManager jingleMediaManager = new MultiMediaManager();
jingleMediaManager.addMediaManager(new JmfMediaManager());
jingleMediaManager.addMediaManager(new JmfMediaManager(locator));
jingleMediaManager.addMediaManager(new SpeexMediaManager());
if (System.getProperty("codec") != null) {