A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
Swing / AWT / SWT
Problem with sounds
Joined: Mar 19, 2011
Jul 07, 2011 13:38:28
I did't use sounds in my programs before, so i'm completly new on this. I'm using the structure below
InputStream in = new FileInputStream(String); AudioStream as = new AudioStream(in); AudioPlayer.player.start(as); AudioPlayer.player.stop(as);
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?
Joined: May 03, 2008
Jul 07, 2011 14:58:40
is any other way to insert sounds in the program?
There are no new questions, but there may be new answers.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Problem with sounds
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014