Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 264 results for
audioclip
- Page 1
Question about the AudioClip class
Programming
Software Development
12 Years Ago
by javaprog200
Hello, I am working with the
AudioClip
class. It has methods for playing, stopping and looping an audio file (.wav/.au). Is there a way I can check when an audio file has completed playing? The stop() method is void. Is there any other class I can use? Thank you!
Re: Question about the AudioClip class
Programming
Software Development
12 Years Ago
by designuts
There is no method in the
AudioClip
class itself to return this value (as I'm sure …
File Handling in Applet and how to close Applet Window
Programming
Software Development
13 Years Ago
by newbie_java
…; String a = "java4.jpg";
AudioClip
audioClip
; public void init() { img = getImage(getDocumentBase…;); }//clr if(source == jb3) {
audioClip
.play(); fra1.setSize(650, 350); fra1.…
Re: Coding disaster; re-coding a program to display and control image and sound.
Programming
Software Development
13 Years Ago
by BestJewSinceJC
…one image private Image zidane; //declare one audio clip private
AudioClip
audioClip
; private double scaleValue; //declare two integers int x =…addActionListener( new ActionListener(){ public void actionPerformed (ActionEvent e){
audioClip
.play(); //show status showStatus("Play button is clicked…
Coding disaster; re-coding a program to display and control image and sound.
Programming
Software Development
13 Years Ago
by LucarioWill
… image private Image zidane; //declare one audio clip private
AudioClip
audioClip
; private double scaleValue; //declare two integers int x …addActionListener( new ActionListener(){ public void actionPerformed (ActionEvent e){
audioClip
.play(); //show status showStatus("Play button is …
Java Game Characteristics
Programming
Software Development
17 Years Ago
by LSPUWILLC
….applet.Applet; import java.applet.
AudioClip
; /************************************************************************************************ Main applet code. …= false; boolean sound;
AudioClip
bonkSound;
AudioClip
munchSound;
AudioClip
squeakSound;
AudioClip
chimeSound;
AudioClip
advanceSound; // Values for …
Java Game Characteristics
Programming
Software Development
17 Years Ago
by LSPUWILLC
….applet.Applet; import java.applet.
AudioClip
; /************************************************************************************************ Main applet code. …= false; boolean sound;
AudioClip
bonkSound;
AudioClip
munchSound;
AudioClip
squeakSound;
AudioClip
chimeSound;
AudioClip
advanceSound; // Values for …
Re: Java Game Characteristics
Programming
Software Development
17 Years Ago
by vinod_javas
….*; import java.util.*; import java.applet.Applet; import java.applet.
AudioClip
;[/B] from this line itself u can find this code…
Need help with looping some sounds
Programming
Software Development
20 Years Ago
by cody_e
….awt.*; import javax.swing.*; import java.applet.
AudioClip
; public class Morning extends JApplet { private
AudioClip
rooster; private final int dealy = 5000; private…
Question about java.lang.SecurityException
Programming
Software Development
19 Years Ago
by George2
… { url = new URL("file:/c:/temp/sample.wav");
AudioClip
clip = Applet.newAudioClip (url); clip.play(); } catch (MalformedURLException e) { // TODO…;main" java.lang.VerifyError: java.lang.SecurityException: java.applet.
AudioClip
- protected system package 'java.applet' at java.lang.Class.verify…
SetBounds of Components
Programming
Software Development
16 Years Ago
by Ghost
….*; import java.awt.event.*; import java.io.*; import java.applet.
AudioClip
; import java.net.*; //the class with the JFrame and the… = new JLabel(drawImg); URL hitURL = null, cheerURL = null, booURL = null;
AudioClip
hit = null, cheer = null, boo = null; //the constructor public TicTacToe…
Button Question/Issue
Programming
Software Development
16 Years Ago
by CaffeineCoder
….*; import javax.sound.sampled.*; import java.applet.
AudioClip
; import javax.swing.JButton; import javax.imageio.*;…(String filename) { //Initialize audio sound effects. try {
AudioClip
FireworkSound = Applet.newAudioClip(getClass().getResource(filename)); FireworkSound.play(); //…
Re: Button Question/Issue
Programming
Software Development
16 Years Ago
by CaffeineCoder
… import javax.sound.sampled.*; import java.applet.
AudioClip
; import javax.swing.JButton; import javax.imageio.*;…(String filename) { //Initialize audio sound effects. try {
AudioClip
FireworkSound = Applet.newAudioClip(getClass().getResource(filename)); FireworkSound.play(); }…
loading
Programming
Software Development
14 Years Ago
by ashish2234
…song_name=(String) jTable2.getValueAt(jTable2.getSelectedRow(), 0);
AudioClip
clip = getAudioClip(getCodeBase(), "songs/"…private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
AudioClip
clip = getAudioClip(getCodeBase(), "songs/" …
Re: loading
Programming
Software Development
14 Years Ago
by TheWhite
[CODE=JAVA]song_name=(String) jTable2.getValueAt(jTable2.getSelectedRow(), 0);
AudioClip
clip = getAudioClip(getCodeBase(), "songs/" + "song_name.MP3"… quotes... [CODE=JAVA]song_name=(String) jTable2.getValueAt(jTable2.getSelectedRow(), 0);
AudioClip
clip = getAudioClip(getCodeBase(), "songs/" + song_name + ".MP3&…
Not too sure what to do with three simple errors in code.
Programming
Software Development
14 Years Ago
by kjpadilla
….awt.*; import java.io.*; import java.net.*; import java.applet.
AudioClip
; public class Whackan extends JFrame implements ActionListener { JButton[][] spots = new….GIF"); T runner = null; URL sci = null, dr = null;
AudioClip
scientific = null, door = null; public Whackan() { super("Whack-an…
applet conversion
Programming
Software Development
14 Years Ago
by gedas
….*; import java.net.*; import java.applet.Applet; import java.applet.
AudioClip
; public class Absolute extends Applet implements Runnable { Dimension d; Font…, bcur, renew, rcnt=0, sstretch, txtalign=100; long score; // Sounds
AudioClip
blast, crash, kill; // Bosses here // Sunbird boolean sunbird, sbefore, safter…
Snake Game - Need help
Programming
Software Development
14 Years Ago
by nickwl23
… boolean GameOver = false; public Graphics G; private
AudioClip
starter, normal, expert, lose; //private
AudioClip
normal,nightmare,hell,lose; /** Initializes the applet MainApplet…
Help with java project - SIMON game
Programming
Software Development
13 Years Ago
by game123
…; } }[/CODE] [CODE]import java.applet.Applet; import java.applet.
AudioClip
; import java.net.MalformedURLException; public class Utility { private static String… of the sounds array. public static void playSound(int num) {
AudioClip
clip = null; if (num < 0 || num > sounds…
Can't get image to draw in Applet
Programming
Software Development
13 Years Ago
by SolidSora
…. [CODE]package mainpackage; import java.applet.Applet; import java.applet.
AudioClip
; import java.awt.Graphics; import java.awt.Image; public class… extends Applet implements Runnable{ /** * */ private static final long serialVersionUID = 1L;
AudioClip
shot; Image badguy; public void init(){ shot = getAudioClip(getCodeBase(), "…
Java Applet Won't Load In Browser
Programming
Software Development
12 Years Ago
by spartanace
…,pStop,sPlay,sStop; JLabel grandText, parentText, siblingText; //create audio clips
AudioClip
gac,pac,sac; JTabbedPane tabPane; public void init(){ //initialize my….play(); }else if(src == sStop) stopMusic(sac); } private void stopMusic(
AudioClip
clip){ //check if clip is playing if it is stop…
Re: I guess this is error t/f
Programming
Software Development
12 Years Ago
by JamesCherrill
… at the ImageIcon API doc. 2. "start playing the
AudioClip
, you need to call the start() method " (yes this… means "
AudioClip
object"). Once again, less than 30 seconds with the…
Help moving the ship in Space invaders
Programming
Software Development
12 Years Ago
by Spiere
… the SIpanel. [CODE]import java.applet.Applet; import java.applet.
AudioClip
; import java.awt.Graphics; import java.awt.Image; import java…); ImageIcon icon = new ImageIcon(url, filename); return icon.getImage(); } protected
AudioClip
getSound(String filename) { URL url = getClass().getResource(filename); return Applet…
problem!!
Programming
Software Development
12 Years Ago
by gourav1
i m not getting how to play a mp3 file using applet? i m using
AudioClip
A = getAudioClip(x); where x is --> URL x=C:\'Users\'gourav\'java_pr; its just a try! i donot know how to use this. it is showing error. tell me how to use
audioclip
interface?
Re: Question about java.lang.SecurityException
Programming
Software Development
19 Years Ago
by George2
… to use the ability of playing sound of Applet (Interface
AudioClip
) in my Java application to save my time of writing…
Re: loading
Programming
Software Development
14 Years Ago
by ashish2234
….event.ActionEvent evt) { song_name=(String) jTable2.getValueAt(jTable2.getSelectedRow(), 0);
AudioClip
clip = getAudioClip(getCodeBase(), "songs/" + "song_name.MP3"…
Re: loading
Programming
Software Development
14 Years Ago
by ashish2234
….event.ActionEvent evt) { song_name=(String) jTable2.getValueAt(jTable2.getSelectedRow(), 0);
AudioClip
clip = getAudioClip(getCodeBase(), "songs/" + "song_name.MP3"…
Re: loading
Programming
Software Development
14 Years Ago
by TheWhite
…;.MP3"; System.out.println("Playing song: "+song_name);
AudioClip
clip = getAudioClip(getCodeBase(), song_name); [/CODE]
Re: Not too sure what to do with three simple errors in code.
Programming
Software Development
14 Years Ago
by Xhamolk_
….awt.*; import java.io.*; import java.net.*; import java.applet.
AudioClip
; [/CODE][/QUOTE] You just missed one import: java.awt.event…
Re: Java Applet Won't Load In Browser
Programming
Software Development
12 Years Ago
by spartanace
…,sButton, sTwoButton, sThreeButton; JLabel grandText, parentText, siblingText; //create audio clips
AudioClip
gac,pac,sac; JTabbedPane tabPane; public void init(){ //initialize my…
1
2
3
5
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC