Whoops, forgot I'd renamed the extension from .au to .as for debugging
purposes. (So I could test it against the JDK without conflicting with
its existing AU Reader) This changes it back.

2006-07-11  Sven de Marothy  <[EMAIL PROTECTED]>

        * gnu/javax/sound/sampled/AU/AUReader.java:
        Correct file extension from .as to .au.


Index: gnu/javax/sound/sampled/AU/AUReader.java
===================================================================
RCS file: /sources/classpath/classpath/gnu/javax/sound/sampled/AU/AUReader.java,v
retrieving revision 1.1
diff -U3 -r1.1 AUReader.java
--- gnu/javax/sound/sampled/AU/AUReader.java	11 Jul 2006 17:25:37 -0000	1.1
+++ gnu/javax/sound/sampled/AU/AUReader.java	11 Jul 2006 17:43:55 -0000
@@ -91,7 +91,7 @@
       ByteBuffer buf = ByteBuffer.wrap(hdr);
 
       if( buf.getInt() != MAGIC )
-	throw new UnsupportedAudioFileException("Not an AS format audio file.");
+	throw new UnsupportedAudioFileException("Not an AU format audio file.");
       headerSize = buf.getInt(); 
       fileSize = buf.getInt(); 
       encoding = buf.getInt(); 
@@ -138,17 +138,17 @@
 
   public AudioFileFormat getAudioFileFormat()
     {
-      return new AudioFileFormat(new ASFormatType(), 
+      return new AudioFileFormat(new AUFormatType(), 
 				 getAudioFormat(), 
 				 AudioSystem.NOT_SPECIFIED);
     }
   }
 
-  public static class ASFormatType extends AudioFileFormat.Type
+  public static class AUFormatType extends AudioFileFormat.Type
   {
-    public ASFormatType()
+    public AUFormatType()
     {
-      super("AS", ".as");
+      super("AU", ".au");
     }
   }
 

Reply via email to