Is your Sound card set up such that it conforms to the Sound-HOW-TO 
     LDP document.
     
     I presume that `/dev/dsp' symbolicly links to `/dev/dsp0' and 
     `/dev/audio' symbolicly links to `/dev/audio0' or something similar.
     
     If this is true `cat chirp.au > /dev/audio' will work, right?
     
     If not true then check your DMA and Interrupt setting from the 
     Sound-HOW-TO' document. I think the command is `cat /proc/interrupts' 
     and `cat /proc/devices'.
     
     First, I cannot see how the JDK cannot find your audio device, because 
     it will need a `/dev/audio' device file, and because the current JDK 
     1.1 can only play Sun Audio files. Second, writing a program to play 
     8bit through `/dev/audio' is very easy to implement.
     
     You call open("/dev/audio",...) and save the file descriptor handle 
     and set the flag `ioctl(...)' to set the sampling rate to 8000Hz. 
     Create a buffer for audio clip , read your audio clip from disk in to 
     buffer (just like a text file) and `write()' the buffer's contents 
     into the file descriptor `/dev/audio' until the contents are 
     exhausted.
     
     In other words it is as easy as writing a program that copys one file 
     to another with a few caveats empors. Hence I do not think it is JDK 
     is a fault. Your configuration probably is.
     
     BTW: XGalaga is an arcade game on Linux, which can play sounds!
     You might try any program which you can found, that can play sounds 
     like SoundStudio (written in Tcl/Tk/C ), XSox, Vrec, Vplay, etc.  
     Particularly anything that plays `.au' files. Look for players in the 
     Linux Sound & Midi pages for more infos `
     http://www.bright.net/~dlphilp/linux_soundapps.html '

        Pete

______________________________ Reply Separator _________________________________
Subject: PLEASE What audio device is java linux looking for???]
Author:  chipg ([EMAIL PROTECTED]) at lon-mime
Date:    17/11/98 08:01


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 g
et:
     
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?!
     
[EMAIL PROTECTED] 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 w
as
> `XGalaga'. I think the problem lies with your software treating AWE64 as a SB1
6.
>
     
What is XGalaga?
     
> It may help to download the latest sound driver that you can get from Open Sou
nd
> 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/lil
o
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
     
     
     
     
     
     
     
     
     
     
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;
  }
}
     
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?!

[EMAIL PROTECTED] 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

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 via email to