This question came up on JAVASOUND a few days ago. The issue,
given the little info that was presented, was likely to be
getting format information to the player. (I think the original
question stated that the author was recording sound using
an unsigned applet ( I called this the Nixon Applet).)
The issue may not be with audio so much as with the
stuff you do and undo to send it over the net. For instance,
some extra stuff at the beginning of a .au file will misplace
the header info. A link to proper use of communications routines
may fix the problem...( although a hex/bin editor could tell
the author if the header info is ok...)
Normally, there isn't any point in answering " I tried this
and it didn't work questions" unless there is some diagnostic info-
I transmitted a PCM sine wave and got back the lyrics to
a TV show theme song- but the audio support on Java
isn't too well documented and empirical obscure data can be
all that is available in some cases...
Mike Marchywka
Senior Engineer
EyeWonder
2859 Paces Ferry Road
Suite 1200
Atlanta GA 30339
770-261-5084(W)
770-434-7510(H)
FAX: 770-261-5080
[EMAIL PROTECTED]
-----Original Message-----
From: T.A. Flores [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 6:12 PM
To: [EMAIL PROTECTED]
Subject: Re: audio data
First of all Audio based Applet != Servlet. Maybe a little lost?
Now since I'm in a fairly generous mood so I'll toss a quick bone.
I haven't worked with the Audio packages but with that said have you
tried just a regular good ol' BufferedInputStream? In the past I've
had to move very large audio files and have had no a problems when with
the BufferedInputStream.
So if you are insistant on using AudioInputStream please read the docs.
http://java.sun.com/j2se/1.3.0/docs/api/javax/sound/sampled/class-
use/AudioInputStream.html
Oh and BTW -in future when posing a code based question (to an
appropriate list of course) post code with the question and take this
to a "more" appropriate list.
----- Original Message -----
From: Ovais Ahmad Khan <[EMAIL PROTECTED]>
Date: Wednesday, June 20, 2001 2:46 pm
Subject: audio data
> hi,
>
> i want to transfer some audio data recorded in an applet to the
> servlet.
> the data on the applet is in a AudioInputStream. i used it's write
> method to write the data to the URL connection's output stream.
>
> now on the servlet i used the request's input stream to construct an
> AudioInputStream. and from there i'm saving it to the file, but this
> file here has
> nothing but great noise. The size of the file is the same but the file
> is somehow corrupt.
>
> can any one guide me as to what is going wrong here. does there exists
> some other way of achieving this task.
>
> --
> Ovais
>
> There are three kinds of people in the world, those who can count, and
> those who can't.
>
>
________________________________________________________________________
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http:
> Resources: http://java.sun.com/products/servlet/external-
> resources.htmlLISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
________________________________________________________________________
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html