Hello,
i'm using blackdown jdk 1.3 on Mandrake Linux OS and I am using KDE + arts.
i got problem when my simple apps doesn't produce sound. While on
Microsoft Windows, it works.
here is the code from the begining java programming books:
import javax.swing.*;
import java.awt.event.*;
public class PlayIt extends JApplet
{
AudioClip clip;
JButton button;
final String play = "PLAY";
final String stop = "STOP";
public void init()
{
String fileName = getParameter("clip");
clip = getAudioClip(getDocumentBase(),fileName);
button = new JButton(play);
button.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
if (e.getActionCommand().equals(play))
{
clip.loop();
button.setText(stop);
}
else
{
clip.stop();
button.setText(play);
}
}
}
);
getContentPane().add(button);
}
}
my question: is there any way to manage java to use particular sound
driver like oss or arts or esd?
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]