NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
June 22, 2018, 08:32:18 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
The softest thing overcomes the hardest thing in the universe. ...Lao Tzu (570-490 BC)
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: A PROG WHICH CAN PLAY SOUND FILES IN SEQUENCE LILE WINAMP  (Read 19573 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
rupesh_ucer@sify.com
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
on: March 30, 2006, 11:44:40 am » posted from:Allahabad,Uttar Pradesh,India

i m in desperate need of A PROG WHICH CAN PLAY SOUND FILES IN SEQUENCE LIKE MEDAIPLAYER
when i load & play sound via an array and play it in for loop all sounds starts simultaneously THIS IS THE CODE

rupesh_ucer@sify.com ; rupesh_ucer@rediffmail.com

import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*;
public class arraysoundplay extends JApplet { public AudioClip[] qw=new AudioClip[2]; public AudioClip a,b,c; public void init() { qw[0] = getAudioClip(getDocumentBase(),"sound/station start.wav" ); qw[1] = getAudioClip(getDocumentBase(),"sound/station stop.wav" ); a = getAudioClip(getDocumentBase(),"sound/111.wav" ); //sound[0].play();
} public void start() { qw[0].play(); qw[1].play(); a.play(); }
public void stop() { a.stop(); }
}
Logged
Fabianz
Newbie
*
Offline Offline

Posts: 2

«
Embed this message
Reply #1 on: May 09, 2018, 03:54:01 pm » posted from:,,Satellite Provider

Does the knowledge forum in this forum have a knowledgeable source of guidance?
Logged
Pages: [1]   Go Up
  Print  
The softest thing overcomes the hardest thing in the universe. ...Lao Tzu (570-490 BC)
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
How to play sound with given frequency: beep(530Hz, 800ms)
Questions related to EJS
Fred Chuit 1 8459 Last post January 19, 2009, 08:38:45 pm
by Fu-Kwun Hwang
Can I use your files in my website ?
Question related to Physics or physics related simulation
GwenArBreizhou 14 13472 Last post May 05, 2009, 01:21:03 pm
by KielSolomon18
How to create a .jar which coul generate .m files
Questions related to EJS
mujer_esponja 5 5903 Last post June 20, 2010, 08:23:37 am
by Fu-Kwun Hwang
Is it possible to convert jar files (created with EJS) to swf?
Questions related to EJS
yperego 5 14169 Last post April 13, 2012, 08:53:34 pm
by ahmedelshfie
where & how to add 3D files of aeroplanes that can be used by EJS?
Questions related to EJS
lookang 4 4546 Last post July 16, 2011, 02:25:53 am
by ahmedelshfie
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.056 seconds with 23 queries.since 2011/06/15