summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven de Marothy <sven@physto.se>2006-07-11 17:47:39 +0000
committerSven de Marothy <sven@physto.se>2006-07-11 17:47:39 +0000
commit7cd2863ad14fde3e1f6659adf4a00ebaeca31049 (patch)
treef112050df1f02d304a8104c1198ce787398f831f
parentac2b862b66e08c3698250bd64ff3910fe7fa4123 (diff)
downloadclasspath-7cd2863ad14fde3e1f6659adf4a00ebaeca31049.tar.gz
2006-07-11 Sven de Marothy <sven@physto.se>
* gnu/javax/sound/sampled/AU/AUReader.java: Correct file extension from .as to .au.
-rw-r--r--ChangeLog5
-rw-r--r--gnu/javax/sound/sampled/AU/AUReader.java10
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 027100c14..0ca839138 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
2006-07-11 Sven de Marothy <sven@physto.se>
* gnu/javax/sound/sampled/AU/AUReader.java:
+ Correct file extension from .as to .au.
+
+2006-07-11 Sven de Marothy <sven@physto.se>
+
+ * gnu/javax/sound/sampled/AU/AUReader.java:
New file.
* resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader:
Added new provider.
diff --git a/gnu/javax/sound/sampled/AU/AUReader.java b/gnu/javax/sound/sampled/AU/AUReader.java
index 99e3f9f47..c9035df73 100644
--- a/gnu/javax/sound/sampled/AU/AUReader.java
+++ b/gnu/javax/sound/sampled/AU/AUReader.java
@@ -91,7 +91,7 @@ public class AUReader extends AudioFileReader
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 class AUReader extends AudioFileReader
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");
}
}