[304] in java-interest
No subject found in mail header
daemon@ATHENA.MIT.EDU (avramov@bimacs.cs.biu.ac.il)
Wed Jun 14 03:36:21 1995
Date: Wed, 14 Jun 1995 10:09:24 +0300
From: avramov@bimacs.cs.biu.ac.il
To: java-interest@java.sun.com
Hello, there !
I'm really new in hotjava and so will be my questions
(Hey, ppl, would somebody be SO kind to answer them):
1.I try to play some "au" file from my applet in this way:
private InputStream music;
public void init() {
resize(50, 50);
music=getAudioStream(new URL(documentURL,"goofed.au"));
// ...
}
public void mouseUp(int x, int y)
{
if (...)
{
//...
startPlaying(music); //1-st version
play("KLF_All_You_Need_Is_Love.au"); //2-nd version
}
else
{
//...
stopPlaying("KLF_All_You_Need_Is_Love.au");
}
//...
}
in the status line
hotjava writes "0% complete" then sometimes
the line keeps the same a long time and nothing happens (in the "weblog"
file sometimes I read "audio device busy", but there is no another audio
audio program on the computer), sometimes (if the au file is really small)
it has played once .
How can I play in the RIGHT way au files from the program ?
How can I stop them in the RIGHT way
in the middle and continue play them
with some next event ?
(Of course I read all the docs and examples which I could find
but it doesn't helps too much)
2. Is there any way to play sound tone in java
giving as parameter some frequency and latency ?
Thanx in advance
Alex
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com