Mercurial > hg > pulseaudio
changeset 167:a4ec901897a5
2008-10-07 Omair Majid <omajid@redhat.com>
* src/java/org/classpath/icedtea/pulseaudio/PulseAudioPort.java
(static): Use System.loadLibrary instead of System.load.
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Tue, 07 Oct 2008 17:17:31 -0400 |
parents | c080309b8edd |
children | c9645471db6c |
files | src/java/org/classpath/icedtea/pulseaudio/PulseAudioPort.java |
diffstat | 1 files changed, 1 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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 @@ 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) {