[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

PLEASE What audio device is java linux looking for???



I cannot get java-linux to make any sound using the AudioClip.play() method
When I run the any applet which should play sound, when the sound is to play I get:

no audio device
audio player exited

(running with -debug, yeilds no additional information)
I can play sound with other applications.
The appletviewer (.java_wrapper) has setuid root
I have a /dev/dsp and /dev/audio
IS JAVA-LINUX LOOKING FOR SOMETHING ELSE!!!
Do these devices need some special characteristics?

I need some specific info on HOW blackdown implements sound,
what does Blackdown's JVM do?!

peter.pilgrim@db.com wrote:

> Absolut Nonsense.
>

What? This is from a vodka ad?

> Have you tried using one of the examples from the JDK demos, if you downloaded
> them. I think one of the applets in the Graphics subdirectory has something
> which plays audio sounds.
>

I've downloaded applets written by James Gosling for sun for the purpose of
showinghow easy it is to play a sound.  It doesn't work! Nothing works, not from
O'Reilly
nothing I've written works, see goofy attached files.

> Is your sound card properly configured. The only game I know that used sound was
> `XGalaga'. I think the problem lies with your software treating AWE64 as a SB16.
>

What is XGalaga?

> It may help to download the latest sound driver that you can get from Open Sound
> System, then recompile the linux kernel. I think it is `www.opensound.com'
>

Excellent Idea!Did that!
Got the latest Driverrs from OSS!
got old code out of the way, untarred new code
ran make xconfig, make dep, make clean, make zImage, copied image, ran /sbin/lilo
rebooted:
Still doesn't work.

> Pete

If I can't figure out how this works, the Microsoft JVM is how all our code will be
tested!
I will be staying late at work to reformat the HD on our linux box to re-install
windows 95

Title: One stupid chirp
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
/*
oneChirp.java
A stupid applet written to prove sound doens't work on my system
*/

public class oneChirp extends Applet {
  protected AudioClip chirp;
  public void init() {
    chirp = this.getAudioClip(this.getDocumentBase(), "chirp.au");
  }
  public boolean mouseDown(Event e, int x, int y) {
    chirp.play();
    return true;
  }
}
  

Reply to: