Java Sound Clip Looping Frame Position
Posted
by InsertNickHere
on Stack Overflow
See other posts from Stack Overflow
or by InsertNickHere
Published on 2010-06-07T08:58:59Z
Indexed on
2010/06/07
9:02 UTC
Read the original article
Hit count: 222
Hi,
I have a little problem with a loopting clip: If you have a soundfile e.g. 20000 samples long, the frame position will not reset after looping, so I get values that are "out of bounds" of the original soundfile. As I want to draw a position marker on my waveform, I'm a bit confused how to achive. At this time I just get myClip.getLongFramePosition() but this does not work as described above.
Does anyone have an idea how to fix that? Is there a possibility to count how often a clip was looped before?
Regards
© Stack Overflow or respective owner