Playing wav files in a JAR exe, jumping to a specified part of the wav

Hey,

What I've been trying to do for the past day is learn how to play wav files in a JAR executable. Specifically, I need to be able to play wav files from certain parts of the wav file according to a timer in the main program. In other words, I need to be able to jump to a specified amount of time into a wav file and start playing there. I've been able to find a lot of resources on how to do this at. One such site would be

http://java.sun.com/j2se/1.3/docs/guide/sound/prog_guide/chapter4.fm.html#113609

It's pretty clear to me that this what I should be doing. The only problem is that 1) I don't know if these will work with a JAR exe, as I've been doing some searching and found that people have had problems playing wav files embedded in a JAR. 2) The Java Sun guide doesn't provide me with enough code examples to actually know what I need to do. Any help with this would be greatly appreciated.

Thanks

[950 byte] By [stogey25a] at [2007-11-27 9:15:43]
# 1

> 1) I don't know if

> these will work with a JAR exe, as I've been doing

> some searching and found that people have had

> problems playing wav files embedded in a JAR.

It will work fine if you do it correctly.

> 2) The Java Sun guide doesn't provide me with enough

> code examples to actually know what I need to do.

What don't you know how to do? If you need more help, search for tutorials on google and consult the API.

CaptainMorgan08a at 2007-7-12 22:05:01 > top of Java-index,Java Essentials,Java Programming...
# 2
I don't know this API, but certainly this helps http://java.sun.com/docs/books/tutorial/sound/
pbulgarellia at 2007-7-12 22:05:01 > top of Java-index,Java Essentials,Java Programming...