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: 4303037
Votes 0
Synopsis AudioSystem.getAudioFileTypes() reports no supported file types
Category java:classes_sound
Reported Against kestrel
Release Fixed 1.4(merlin-beta2)
State 10-Fix Delivered, Verified, bug
Priority: 4-Low
Related Bugs
Submit Date 06-JAN-2000
Description
AudioSystem.getAudioFileTypes() reports no supported file types




AudioSystem.getAudioFileTypes() should return an array
of file types for which file writers are available on
the system.  Instead, it always returns an array of length
0.  AudioSystem.getAudioFileTypes(AudioInputStream) works
correctly.

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


 xxxxx@xxxxx  2001-01-29
Removed from Ladybird project as per request.
Although this bug applies to Ladybird as well as Merlin, there are no engineering resources to address it in the Ladybird project timeframe.
Work Around
N/A
Evaluation
This problem occurs due to a coding problem in SunFileWriter.java, in 
which the array of supported file types is set to:

     public static final AudioFileFormat.Type types = {};

This types variable is then used in the implementation of getAudioFileTypes()
and, unsurprisingly, always returns an array of length 0.

I have a fix for this bug in my workspace.

 xxxxx@xxxxx  2000-01-06

The fix is in our standalone workspace, awaiting approval for integration into kestrel or ladybug. 

 xxxxx@xxxxx  2000-01-28

 xxxxx@xxxxx  2000-08-25
	No engineer to confirm if fix is in. Committing to 
	merlin to properly close this bug.

 xxxxx@xxxxx  2001-07-17
	Fix confirmed for Merlin.
Comments
  
  Include a link with my name & email   

Submitted On 25-FEB-2001
hyp1
I have the same problem, is ther a fix around?
please mail it to me
best regards
hype


Submitted On 04-AUG-2001
sapex
You complain there are no engineering resources.
This would not be the case if it was open sourced.
Imagine all the bugs that could be fixed.


Submitted On 04-FEB-2002
albanc
looks like it is not fixed in jdk1.4 rc0
I have the problem.
Also authorizations in the java.policy for the javasound 
demo are not well recognized. file could be saved (before 
the unsuportedfiletype bug occured) but could not be loaded 
though I made a copy/paste of the grant{} stuff from the 
readme file


Submitted On 19-FEB-2002
migG
Works for me in build 1.4.0-rc-b91:
import javax.sound.sampled.*;
class AudioRes {
  public static void main(String args[]) {
   AudioFileFormat.Type types []  = 
AudioSystem.getAudioFileTypes() ;
   System.out.println("Formats: " + types.length) ;
    for(int i=0; i<types.length; i++)
     System.out.println(i+ ":  " + types[i].toString()) ;
 }
}

Output:
Formats: 3
0:  AU
1:  AIFF
2:  WAVE




PLEASE NOTE: JDK6 is formerly known as Project Mustang