• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which version of java supports audio?

 
shivi jain
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do reply?
 
John de Michele
Rancher
Posts: 600
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shivi:

Can you clarify what you mean by 'supports audio'?

John.
 
shivi jain
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[i mean that i am currently using jdk1.7 and it is not supporting any audio package.please help.
 
John de Michele
Rancher
Posts: 600
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shivi:

Well, since JDK 1.7 hasn't been officially released yet, that might be the problem. Is there a specific package or API that you're using?

John.
 
shivi jain
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
import sun.audio.*;
i have used this in my source code.
 
John de Michele
Rancher
Posts: 600
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shivi:

Classes in the sun.* packages are not intended for general use, and are "at your own risk". You might want to look for a third-party API.

John.
 
shivi jain
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do we use third party API?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15441
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java has always supported sound, even since before Java 1.0.

There are official APIs for sound. Don't use sun.* packages, use the official APIs instead. You don't need any third-party library or API unless you're going to do very special things that Java doesn't support by itself.

See Trail: Sound in Sun's Java tutorials to learn how to work with sound in Java.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic