EasyOgg problem..

Well I’m having problems with EasyOgg in that it’s not playing anything, and it’s not throwing any exceptions. I used a random ogg that plays through xmms but won’t in my application:


import java.io.IOException;
import java.util.Scanner;
import org.newdawn.easyogg.OggClip;

public class SoundTest
{
	OggClip clip;
	public static void main(String args[])
	{
		new SoundTest();
		
	}
	public SoundTest()
	{
		try
		{
			clip = new OggClip("startup2.ogg");
			clip.loop();
			System.out.println("sound looping!");
		} catch (IOException e)
		{
			e.printStackTrace();
		}
		Scanner input=new Scanner(System.in);
		do
		{
			System.out.println("Quit?");
		}
		while(!input.nextLine().equals("Y"));
	}
}

sound looping! prints, and Quit? prints, but there’s no sound playing ???

EDIT:debugger output with breakpoint on clip.loop();
http://dec19.imghost.us/uEzu.png

EDIT2: adding Thread.sleep(100); after clip.loop(); makes it work, but is there a more reliable way to ensure that the sound will play?

I do not have this problem with Easy Ogg, however I’ve got another problem with EasyOgg which will obviously everyone has:
once I loaded the Clip (= new OggClip(“Path”)) I can only do playing one time in a row, well no thats not quite it…

I can play the sound numerous times but if you do OggClip.play() at a time the clip already plays, it corrupts forever. SO I may have to create a manually delay for everyclip…
is there another option ? =D

[quote]is there another option ? =D
[/quote]
the easyogg class is pretty simple, so you can implement that functionality yourself :wink: