Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

AudioSystem

Thread view: 
Francois Lionet - 06 Jun 2007 08:38 GMT
Hello,

I would like to know, and counld not find it, the audio formats supported by
the AudioSystem class. I know it supports WAV. but that's all I know. I have
read the AudioFormat class description, and could not find any information
about the format values. For example, I have a source code (from a book)
that detects the format "AudioFormat.Encoding.ULAW". And I cant find any
information in the Javadoc.
-> Can you direct me to a valuable information about AudioSystem /
AudioFormat ?
-> Can you tell me what format is supported by AudioSystem, and how to
convert samples that are not in the correct format? Like MP3, OGG for
example...

Thanks Francois
Andrew Thompson - 06 Jun 2007 09:22 GMT
...
>I would like to know, ..the audio formats supported by
>the AudioSystem class.

See AudioFileFormat.Type

>..I know it supports WAV. but that's all I know.

Note that for container formats, the encoding is more
important than the file type, and..

>..I have
>read the AudioFormat class description, and could not find any information
>about the format values. For example, I have a source code (from a book)
>that detects the format "AudioFormat.Encoding.ULAW".

..that is an encoding.  Note that not all (for example) WAV
file types will have an encoding that is understood by Java.

> Can you tell me what format is supported by AudioSystem, and how to
>convert samples that are not in the correct format?

If you can decode them, you can transform them to
whatever encoding you want.  But if you can decode
the format from mwithin Java, it seems pointless
changing them to another format!

Note that
1) JMF offers a wider variety of encodings.
2) Java 7might be able to hook into native media
players.  Then Java will be able to play any format
supported on the system.

Signature

Andrew Thompson
http://www.athompson.info/andrew/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.