JDK-4967587 : Sequencer does not loop with endpoint = -1
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: generic
  • CPU: generic
  • Submitted: 2003-12-12
  • Updated: 2004-07-14
  • Resolved: 2004-03-31
Description
Name: fb126949			Date: 12/12/2003


When looping with the new loop methods (RFE 4204105), using -1 as end point is supposed to do the same as setting the last tick of the sequence as end point. However, using -1 does not always result in looping, while using the last tick does correctly.

This causes failure of the new test302.


======================================================================

Comments
WORK AROUND Instead of seq.setLoopEndPoint(-1); use seq.setLoopEndPoint(seq.getTickLength());
13-09-2004

PUBLIC COMMENTS The test case was too strict and is fixed.
13-09-2004

EVALUATION Important to get this low-risk bug fixed for tiger. ###@###.### 2003-12-15 After all it turned out that the test was too strict. When specifying -1 as end point, the sequencer needs to run until it *really* reaches the end. This can be a little the last tick of the sequence. The sequencer should not cache the end point, since the sequence length may change during playback. Therefore, the test case was modified to allow the sequencer to reach the last tick of the sequence, before jumping back to the loop start tick. ###@###.### 2004-03-31
31-03-2004