What is the best way to go about putting sound into a Java application? Or is there one, it's just all personal preference or situation?
I was looking online, and I found a tutorial that included the use of the undocumented "sun.audio" (I believe it was called that) package. I looked around, and found the "javax.sound.sampled" package, which is documented, official, and appears to be the same thing.
So I was wondering, is there a "best", "most efficient", or "standard" way to include music in a Java application? I was looking around stackoverlow and other websites, and I found a lot of different answers pointing in multiple directions.
I suppose a follow-up question would be is one package better for short lived "effect" sounds, and one better for a more background music feel? Or is one just better overall? Thanks for the help.