I am trying to implement sound player in Java as following.

public void play() throws Exception
AudioInputStream stream = AudioSystem.getAudioInputStream( new FileInputStream(new File(m_path)));
AudioFormat format = stream.getFormat();
DataLine.Info info = new DataLine.Info( Clip.class, stream.getFormat(), ((int)stream.getFrameLength()*format.getFrameSize( )));

soundClip = (Clip) AudioSystem.getLine(info);

soundClip.addLineListener(new LineListener() {
public void update(LineEvent event) {
if (event.getType() == LineEvent.Type.STOP)
System.out.println("playcomplete event: " + soundClip.getMicrosecondPosition());


'soundClip' is instance of javax.sound.sampled.Clip.

After completion of play LineEvent.Type.STOP is fired.

Method call soundClip.getMicrosecondPosition() displays the proper values in windows but in Mac OSX it always prints 0.

Any specific issues observed with Apple's sound implementation?

Please help me out

Thanks in advance