File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
I agree. Here's the link:
subject: Problem with sounds
Saving a sound as byte array
Problem playing sound from application
Where to park my abc.wav file in the Netbeans IDE
Saving sound as byte array
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015