167168169170171172173174175176177
} } // test first song try { mp3.play(new URL(music1)); } catch (Exception e) { e.printStackTrace(); }
194195196197198199200201202203204
// first song stopped System.out.println("end-song"); // test second song try { mp3.play(new URL(music2)); } catch (Exception e) { e.printStackTrace(); }
547548549550551552553554555556557
} } // test first song try { ogg.play(new URL(music1)); } catch (Exception e) { e.printStackTrace(); }
577578579580581582583584585586587
// try { // ogg.play(new URL("file:///d:/golden t studios/trash/songtitle.ogg")); // } catch (Exception e) { e.printStackTrace(); } // play it again ogg.play(); // wait until complete while (ogg.getStatus() == BaseAudioRenderer.PLAYING) { try { Thread.sleep(1000);