diff options
author | doko <doko@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-04 10:53:49 +0000 |
---|---|---|
committer | doko <doko@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-04 10:53:49 +0000 |
commit | bfd03af53013b43663c88995c6d5943815e8d75b (patch) | |
tree | 871b70a606d87369d5aa9d6f621baedc13b49eba /libjava/classpath/javax/sound/sampled/DataLine.java | |
parent | befb0bace8afefe156fe5718f9d1f202d28560c7 (diff) | |
download | ppe42-gcc-bfd03af53013b43663c88995c6d5943815e8d75b.tar.gz ppe42-gcc-bfd03af53013b43663c88995c6d5943815e8d75b.zip |
libjava/
2007-08-04 Matthias Klose <doko@ubuntu.com>
Import GNU Classpath (libgcj-import-20070727).
* Regenerate class and header files.
* Regenerate auto* files.
* include/jvm.h:
* jni-libjvm.cc (Jv_JNI_InvokeFunctions): Rename type.
* jni.cc (_Jv_JNIFunctions, _Jv_JNI_InvokeFunctions): Likewise.
* jni.cc (_Jv_JNI_CallAnyMethodA, _Jv_JNI_CallAnyVoidMethodA,
_Jv_JNI_CallMethodA, _Jv_JNI_CallVoidMethodA,
_Jv_JNI_CallStaticMethodA, _Jv_JNI_CallStaticVoidMethodA,
_Jv_JNI_NewObjectA, _Jv_JNI_SetPrimitiveArrayRegion): Constify
jvalue parameter.
* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise.
* java/lang/VMFloat.java (toString, parseFloat): New.
* gnu/awt/xlib/XToolkit.java (setAlwaysOnTop, isModalityTypeSupported,
isModalExclusionTypeSupported): New (stub only).
* gnu/awt/xlib/XCanvasPeer.java (requestFocus): Likewise.
* gnu/awt/xlib/XFramePeer.java (updateMinimumSize, updateIconImages,
updateFocusableWindowState, setModalBlocked, getBoundsPrivate,
setAlwaysOnTop): Likewise.
* gnu/awt/xlib/XFontPeer.java (canDisplay): Update signature.
* scripts/makemake.tcl: Ignore gnu/javax/sound/sampled/gstreamer,
ignore javax.sound.sampled.spi.MixerProvider, ignore .in files.
* HACKING: Mention --enable-gstreamer-peer, removal of generated files.
libjava/classpath/
2007-08-04 Matthias Klose <doko@ubuntu.com>
* java/util/EnumMap.java (clone): Add cast.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127204 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/javax/sound/sampled/DataLine.java')
-rw-r--r-- | libjava/classpath/javax/sound/sampled/DataLine.java | 62 |
1 files changed, 33 insertions, 29 deletions
diff --git a/libjava/classpath/javax/sound/sampled/DataLine.java b/libjava/classpath/javax/sound/sampled/DataLine.java index aa99a046ce4..b7cb70e4931 100644 --- a/libjava/classpath/javax/sound/sampled/DataLine.java +++ b/libjava/classpath/javax/sound/sampled/DataLine.java @@ -1,5 +1,5 @@ /* - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005-2007 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -35,7 +35,6 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ - package javax.sound.sampled; /** @@ -138,10 +137,10 @@ public interface DataLine extends Line public boolean isFormatSupported(AudioFormat fmt) { for (int i = 0; i < formats.length; ++i) - { - if (fmt.matches(formats[i])) - return true; - } + { + if (fmt.matches(formats[i])) + return true; + } return false; } @@ -151,25 +150,28 @@ public interface DataLine extends Line public boolean matches(Line.Info o) { if (! super.matches(o) || ! (o instanceof Info)) - return false; + return false; + Info other = (Info) o; - if (minBufferSize < other.minBufferSize - || maxBufferSize > other.maxBufferSize) - return false; + if (minBufferSize < other.minBufferSize || + maxBufferSize > other.maxBufferSize) + return false; + for (int i = 0; i < formats.length; ++i) - { - boolean ok = false; - for (int j = 0; j < other.formats.length; ++j) - { - if (formats[i].matches(other.formats[j])) - { - ok = true; - break; - } - } - if (! ok) - return false; - } + { + boolean ok = false; + for (int j = 0; j < other.formats.length; ++j) + { + if (formats[i].matches(other.formats[j])) + { + ok = true; + break; + } + } + if (! ok) + return false; + } + return true; } @@ -181,18 +183,20 @@ public interface DataLine extends Line StringBuffer result = new StringBuffer(); result.append("formats: ["); for (int i = 0; i < formats.length; ++i) - { - if (i > 0) - result.append(", "); - result.append(formats[i].toString()); - } + { + if (i > 0) + result.append(", "); + result.append(formats[i].toString()); + } + result.append("]; minBufferSize: "); result.append(minBufferSize); result.append("; maxBufferSize: "); result.append(maxBufferSize); return result.toString(); } - } + + } // end class: Info /** * Return the number of bytes currently available on this DataLine. |