Posts: 121
Location: Westminster, CO / Denver
|
I have been programing java for a while now and i have finaly needed to learn how to play sounds. I have looked all over the internet on how to do this and i have found a lot of stuff. I'm trying to work with one code that i found wich is much like this
Code:
import java.applet.*;
AudioClip sound = getAudioClip(getCodeBase(), "file.mp3");
i have tryed this but for some reason getCodeBase() will not work. If you can help me fix this or you know a better way to play audio files in an application.
|