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: 4237703
Votes 0
Synopsis Clip.getDuration() may return bogus negative values
Category java:classes_sound
Reported Against merlin , 1.0alpha
Release Fixed 1.4(merlin-beta2)
State 10-Fix Delivered, Verified, bug
Priority: 2-High
Related Bugs 4386103
Submit Date 12-MAY-1999
Description
Clip.getDuration() may return bogus negative values


Clip.getDuration() returns a bogus value.  For ten seconds of capture 
getDuration() often returns a negative value such as -39547.0.  According to the 
spec :

getDuration() 
                Obtains the duration in nanoseconds of the audio data
      contained in the clip.
Work Around
N/A
Evaluation
 xxxxx@xxxxx  2000-02-09
	Is this still a bug?

 xxxxx@xxxxx  2001-05-07
	Unsure if this is still a bug. Push to Tiger.


 xxxxx@xxxxx  2001-07-09
	Clip.getDuration() doesn't exist anymore. The replacement is Clip.getMicrosecondLength which returns, currently, the duration in seconds... Easy fix for Merlin.
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang