changeset in /hg/pulseaudio: 2008-10-07 Omair Majid <omajid at redh...

Omair Majid omajid at redhat.com
Tue Oct 7 14:17:39 PDT 2008


changeset a4ec901897a5 in /hg/pulseaudio
details: http://icedtea.classpath.org/hg/pulseaudio?cmd=changeset;node=a4ec901897a5
description:
	2008-10-07 Omair Majid <omajid at redhat.com>

	    * src/java/org/classpath/icedtea/pulseaudio/PulseAudioPort.java
	    (static): Use System.loadLibrary instead of System.load.

diffstat:

1 file changed, 1 insertion(+), 12 deletions(-)
src/java/org/classpath/icedtea/pulseaudio/PulseAudioPort.java |   13 ----------

diffs (30 lines):

diff -r c080309b8edd -r a4ec901897a5 src/java/org/classpath/icedtea/pulseaudio/PulseAudioPort.java
--- a/src/java/org/classpath/icedtea/pulseaudio/PulseAudioPort.java	Tue Oct 07 14:08:22 2008 -0400
+++ b/src/java/org/classpath/icedtea/pulseaudio/PulseAudioPort.java	Tue Oct 07 17:17:31 2008 -0400
@@ -37,8 +37,6 @@ exception statement from your version.
 
 package org.classpath.icedtea.pulseaudio;
 
-import java.io.IOException;
-
 import javax.sound.sampled.AudioSystem;
 import javax.sound.sampled.LineEvent;
 import javax.sound.sampled.LineUnavailableException;
@@ -66,16 +64,7 @@ public abstract class PulseAudioPort ext
 	private PulseAudioVolumeControl volumeControl;
 
 	static {
-		try {
-			String library = new java.io.File(".").getCanonicalPath()
-					+ java.io.File.separatorChar
-					+ System.mapLibraryName("pulse-java");
-			// System.out.println(PulseAudioVolumeControl.class.getCanonicalName()
-			// + ": " + library);
-			System.load(library);
-		} catch (IOException e) {
-			assert ("Loading failed".endsWith("library"));
-		}
+		System.loadLibrary("pulse-java");
 	}
 
 	public PulseAudioPort(String name, EventLoop eventLoop) {



More information about the distro-pkg-dev mailing list