ok, so i have lots of audio in my program that only plays once, and that all just works fine and perfect
This is what i do to play music
try
{
InputStream a = new FileInputStream ("Sounds-Music/MainTheme.wav");
theme = new AudioStream (a);
}
catch (java.io.IOException z) //catching the exception
{
}
// Play audio.
AudioPlayer.player.start (theme);
now im trying to make a ContinuousAudioDataStream. This is my code, it compiles fine, but
doesant play any sound?, what am i missing?
try
{
InputStream a = new FileInputStream ("Sounds-Music/MainTheme.wav");
theme = new AudioStream (a);
AudioData themestream = theme.getData ();
// Create ContinuousAudioDataStream.
ContinuousAudioDataStream THEME = new ContinuousAudioDataStream (themestream);
// Play audio.
AudioPlayer.player.start (THEME);
}
catch (java.io.IOException z) //catching the exception
{
}