Skip to content

Commit

Permalink
Remoção biblioteca de audio
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoDebarba committed Jun 14, 2014
1 parent 2454cdc commit 902efbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion OpenLync_client/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
<classpathentry kind="lib" path="/home/roberto/Documentos/eclipse/libs/imgscalr-lib-4.2.jar"/>
<classpathentry kind="lib" path="lib/swing-layout-1.0.3.jar"/>
<classpathentry kind="lib" path="lib/AbsoluteLayout.jar"/>
<classpathentry kind="lib" path="/home/roberto/eclipse/lib/jl1.0.1.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
13 changes: 3 additions & 10 deletions OpenLync_client/src/openlync/utilidades/AudioPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,21 @@
import java.applet.AudioClip;
import java.net.URL;

import javazoom.jl.player.Player;

public class AudioPlayer implements Runnable {

private URL audio;
private Player player;
private URL audioFile;

private void execute() {
try {
AudioClip ac = Applet.newAudioClip(audio);
AudioClip ac = Applet.newAudioClip(audioFile);
ac.play();
} catch (Exception e) {
e.printStackTrace();
}
}

public Player getPlayer() {
return player;
}

public void setAudioFile(URL audio) {
this.audio = audio;
this.audioFile = audio;

}

Expand Down

0 comments on commit 902efbe

Please sign in to comment.