Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes Problem with sounds Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem with sounds" Watch "Problem with sounds" New topic
Author

Problem with sounds

Pan Niko
Ranch Hand

Joined: Mar 19, 2011
Posts: 86

Hello,

I did't use sounds in my programs before, so i'm completly new on this. I'm using the structure below



I have problem with AudioStream type, underline it and says "Access restriction: The type AudioStream is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar"

What is the problem. Also, there is any other way to insert sounds in the program?
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

is any other way to insert sounds in the program?


static method Applet#newAudioClip(URL url)


luck, db
There are no new questions, but there may be new answers.
 
jQuery in Action, 2nd edition
 
subject: Problem with sounds
 
Similar Threads
Problem playing sound from application
Where to park my abc.wav file in the Netbeans IDE
Saving a sound as byte array
Saving sound as byte array
AudioPlayer issues