My code in the OP had ContinuousAudioDataStream and I wanted it to play from the jar. But never mind I think this thread is solved because I came up with something similar but it reads the files off...
Type: Posts; User: nivangerow
My code in the OP had ContinuousAudioDataStream and I wanted it to play from the jar. But never mind I think this thread is solved because I came up with something similar but it reads the files off...
The nvm was for playing the sound/song. Now i have to loop it. I tried next to nothing because I don't know what to type in the search box. I searched for "java play sound and loop" but that had...
There is no problem, I need to know how to loop it thats all.
Is there any1 that can help me?
So is there any way i can loop the sound/song?
Nvm, i found out how to play the sound/song, now how do I loop it?
This is my code so far:
package net.nivangerow.Ball;
import sun.audio.*;
import java.io.*;
public class SoundManager {...
Sorry I cant do this live person stuff, im scared about that. Also I can't play football with you because I dont know where you live so yeah.
And you don't know the cause of the error? Im gonna...
package net.nivangerow.Ball;
import sun.audio.*;
import java.io.*;
public class SoundManager {
public SoundManager(String music)
{
AudioStream as;
AudioPlayer ap = AudioPlayer.player;...
Bump help please D:
Sorry for the bump but I really need help :( please...
With this code:
package net.nivangerow.Ball;
import sun.audio.*;
import java.io.*;
public class SoundManager {
public SoundManager(String music)
Thanks ill try that and report back.
Im sorry that I am being a real noob right now, but I don't get what you want me to do with the instance thing...
Do you mean I should make a static object of the ClassLoader class?
I dont get half of your terminology... Is there any way you can show me how to do it?
Where would I use that in the code i posted in the op?
[edit]
I get this error
"Cannot make a static reference to the non-static method getResourceAsStream(String) from the type ClassLoader"
...
Is it possible? This is my code and I just cant get it to work, I followed a tutorial on youtube and it came out with this code:
package net.nivangerow.Ball;
import sun.audio.*;
import...