You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdelibs/tdehtml/java/org/kde/kjas/server/KJASSoundPlayer.java

37 lines
874 B

package org.kde.kjas.server;
import java.applet.*;
import java.net.*;
public class KJASSoundPlayer implements AudioClip
{
private String file;
private String contextId;
public KJASSoundPlayer( String _contextId, URL _file )
{
file = _file.toString();
contextId = _contextId;
Main.debug("KJASSoundPlayer( URL '" + _file + "')");
}
public void loop()
{
Main.debug("KJASSoundPlayer loop() URL='" + file + "'");
Main.protocol.sendAudioClipLoopCommand(contextId, file);
}
public void play()
{
Main.debug("KJASSoundPlayer play() URL='" + file + "'");
Main.protocol.sendAudioClipPlayCommand(contextId, file);
}
public void stop()
{
Main.debug("KJASSoundPlayer stop() URL='" + file + "'");
Main.protocol.sendAudioClipStopCommand(contextId, file);
}
}