• Subject: RE: Playing a .wav file in Java 1.1.7
  • From: "Richard Dean" <rddean@xxxxxxx>
  • Date: Mon, 15 Nov 1999 13:52:04 -0500
  • Importance: Normal

Thanks Brad and Luther for the input.  I got it working with you help.  Brad
the Java tip was exactly what I needed, plus I have a new web site to check
for information.

Again thanks for the help.




-----Original Message-----
From: owner-java400-l@midrange.com
[mailto:owner-java400-l@midrange.com]On Behalf Of Brad Grier
Sent: Thursday, November 11, 1999 11:14 AM
To: JAVA400-L@midrange.com
Subject: Re: Playing a .wav file in Java 1.1.7


Playing audio in applications is a bit tricky because Java by default only
supports .au files. To get audio in an application in JDK 1.1 (an applet is
easy), you have to resort to the undocumented sun.audio classes. See:

http://www.javaworld.com/javaworld/javatips/jw-javatip24.html

But then you're still limited to .au files. JMF will play .wavs and WILL
work with JDK 1.1.x.  Here's a few lines from the JMF FAQ:


"What version of the Java Development Kit (JDK) is needed to run Sun's JMF
1.1 implementation?

JDK 1.1 or later versions. For complete Y2K compliance, you should use JDK
1.1.6 or later. "


I think JMF is your best bet unless you're willing to convert to the .au
format.

Brad



----- Original Message -----
From: Richard Dean <rddean@gdi.net>
To: <JAVA400-L@midrange.com>
Sent: Thursday, November 11, 1999 8:07 AM
Subject: RE: Playing a .wav file in Java 1.1.7


> Thanks for the reply Brad, but I think I would need Java 1.2 to use those
> classes.  Unfortunately the IDE I use(Visual Age 2.0) is only up to 1.1.6
or
> 1.1.7.  So unless I am totally out in left field about Visual Age, I will
> not be able to use that.  Thanks again though for replying.  If any one
else
> has any ideas please let me know.  I know that you can play a .wav file in
> an Applet using pre-Java 1.2 JVM, I just can not figure out how to do it
in
> an application.
>
> Thanks again
> Richard.
>
>
> -----Original Message-----
> From: owner-java400-l@midrange.com
> [mailto:owner-java400-l@midrange.com]On Behalf Of Brad Grier
> Sent: Wednesday, November 10, 1999 11:23 AM
> To: JAVA400-L@midrange.com
> Subject: Re: Playing a .wav file in Java 1.1.7
>
>
> You might try the Java Media Framework from Sun. It can play .wav files
and
> even .mp3s.
>
> http://java.sun.com/products/java-media/jmf/index.html
>
> Brad
>
> ----- Original Message -----
> From: Richard Dean <rddean@gdi.net>
> To: <JAVA400-L@midrange.com>
> Sent: Wednesday, November 10, 1999 7:28 AM
> Subject: Playing a .wav file in Java 1.1.7
>
>
> > I am using Visual Age for Java 2.0,  which is not at release 2.0 of the
> JVM.
> > I am wanting to play a .wav file in an application.  All of my books,
and
> > all of the examples that I can find on the web for doing this is for
Java
> > 2.0.
> >
> > Does anyone know how to play a .wav file in an application running on a
> > release of the Java before 2.0?
> >
> > Thanks,
> > Richard
> >
> > +---
> > | This is the JAVA/400 Mailing List!
> > | To submit a new message, send your mail to JAVA400-L@midrange.com.
> > | To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
> > | To unsubscribe from this list send email to
> JAVA400-L-UNSUB@midrange.com.
> > | Questions should be directed to the list owner: joe@zappie.net
> > +---
>
> +---
> | This is the JAVA/400 Mailing List!
> | To submit a new message, send your mail to JAVA400-L@midrange.com.
> | To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
JAVA400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner: joe@zappie.net
> +---
>
> +---
> | This is the JAVA/400 Mailing List!
> | To submit a new message, send your mail to JAVA400-L@midrange.com.
> | To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
JAVA400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner: joe@zappie.net
> +---

+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.