Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4386052
Votes 6
Synopsis Looping a portion of a clip from a start point to an end point doesn't work.
Category java:classes_sound
Reported Against merlin
Release Fixed 1.5(tiger-beta)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 03-NOV-2000
Description
Looping a portion of a clip from a start point to an end point doesn't work.Looping a portion of a clip from a start point to an end point doesn't work.

1. load a clip
2. Invoke setLoopPoints passing a start point 0 and end point 100
3. Invoke loop(10) on the clip

Expected result: The subsection, (frames 0 - 100), play 10 times.
Actual result: The entire clip plays 10 times.

This contradicts published JavaDoc.
Code that demonstrates this behavior is attached.
This behavior was observed on both Solaris and Windows platforms.


 xxxxx@xxxxx  2001-01-29
Removed from Ladybird project as per request.
Although this bug applies Ladybird as well as Merlin, there are no engineering resources to address it in the Ladybird project timeframe.
Work Around
N/A
Evaluation
 xxxxx@xxxxx  2002-11-02
	The following problems exist:
- the engine only allows loop points to be specified relative to the start position
- the engine only allows the start position inside the loop interval
- it would be very risky to change that behavior
- without such a change, setting loop points would affect the start position and vice versa, which is not wanted
- MixerClip (Java Sound Engine's class for Clip) does not define nSetLoopPoints to set the loop points after the device has been opened. Since the device is opened while setting the data with open(), all calls to setLoopPoints() are ignored.

	A fix is too risky because it requires a lot of changes in the Java Sound Engine with many potential side effects regarding MIDI synthesis. Direct audio renderers in Tiger will fix this automatically.


 xxxxx@xxxxx  2003-08-23
	Tried again to fix it, but the engine is too complicated in its loop handling. Is working correctly with direct audio drivers (ALSA/DirectSound/SolarisMixer).

This is fixed with direct audio devices in 1.5.
 xxxxx@xxxxx  2004-03-01
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang