P
Pak_indo
Hi folks,
ok, I have 5 or so files which need to be played one after another, pretty
much immediately after another such that it sounds like theyre kinda linked
so to speak(I cant make one big file as the order they come in differs on
runtime)
What i would like to know is, is this possible with this package? The
current code I am using to play is
try{
InputStream in = new FileInputStream(fileName);
// Create an AudioStream object from the input stream.
AudioStream as = new AudioStream(in);
// Use the static class member "player" from class AudioPlayer to play
// clip.
AudioPlayer.player.start(as);
// Similarly, to stop the audio.
//AudioPlayer.player.stop(as);
}
catch(Exception e){System.out.println(e);}
and would like to know how I can manipulate this to play them one after
another, ie is there a specific method which would help me etc.
Thanks for any time which anyone could give me
cheers
pak
ok, I have 5 or so files which need to be played one after another, pretty
much immediately after another such that it sounds like theyre kinda linked
so to speak(I cant make one big file as the order they come in differs on
runtime)
What i would like to know is, is this possible with this package? The
current code I am using to play is
try{
InputStream in = new FileInputStream(fileName);
// Create an AudioStream object from the input stream.
AudioStream as = new AudioStream(in);
// Use the static class member "player" from class AudioPlayer to play
// clip.
AudioPlayer.player.start(as);
// Similarly, to stop the audio.
//AudioPlayer.player.stop(as);
}
catch(Exception e){System.out.println(e);}
and would like to know how I can manipulate this to play them one after
another, ie is there a specific method which would help me etc.
Thanks for any time which anyone could give me
cheers
pak