Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Sound effects in Java

Name: Anonymous 2010-03-29 21:32

So, any Java programmers out there want to help me out with something?

I have an assignment due in a few days, I needed to make a Tetris clone. I've done that just fine, but it just doesn't feel like Tetris without the music. What I ask is, how would I get music into a Java program?

Basically, I need a class that takes a .wav file as a parameter in the Constructor, and loops it until a stop method is called.

Name: Anonymous 2010-03-29 21:51

http://www.jsresources.org/examples/

Additionally, if you are torturing yourself with Java3D, it comes with its own audio support class(es).

Name: Anonymous 2010-03-29 22:03

.wav file
Pig disgusting.

Name: Anonymous 2010-03-29 22:20

That example page really helped. I used the clip example for looping, and I made a few changes to it, but I can't figure out how to stop the sound. I did m_clip.stop() which, according to the description in the file, should stop the sound where it is, but it closes my entire program.

Any help?

Name: Anonymous 2010-03-29 22:37

Nevermind, figured it out.

Name: Anonymous 2010-03-30 1:51

Use Clojure.

Name: Anonymous 2010-03-30 3:43

>>5
how?

Name: Anonymous 2010-03-30 4:00

>>7
OP here, see >>6

Name: Anonymous 2010-03-30 10:49

java
pig disgustingenterprise language back to /g/, please

Name: Anonymous 2010-03-30 16:54

.wav file in Java
Pig disgusting
FTFY

Name: Anonymous 2011-01-31 21:03

<-- check em dubz

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List