harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r453536 - /incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/
Date Fri, 06 Oct 2006 09:33:39 GMT
Author: smishura
Date: Fri Oct  6 02:33:38 2006
New Revision: 453536

URL: http://svn.apache.org/viewvc?view=rev&rev=453536
Log:
Apply patch for HARMONY-1601 ([classlib][sound] First contribution: interfaces and stubs for
javax,sound.sampled package)

Added:
    incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/AudioPermission.java
  (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/BooleanControl.java
  (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Clip.java
  (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/CompoundControl.java
  (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/EnumControl.java
  (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/FloatControl.java
  (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Port.java
  (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/ReverbType.java
  (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/SourceDataLine.java
  (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/TargetDataLine.java
  (with props)
Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Control.java

Added: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/AudioPermission.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/AudioPermission.java?view=auto&rev=453536
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/AudioPermission.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/AudioPermission.java
Fri Oct  6 02:33:38 2006
@@ -0,0 +1,35 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.sound.sampled;
+
+import java.security.BasicPermission;
+
+public class AudioPermission extends BasicPermission {
+    //FIXME
+    /*
+     * a static final serialVersionUID field is required
+     */
+
+    public AudioPermission(String name) {
+        super(name);
+    }
+
+    public AudioPermission(String name, String actions) {
+        super(name, actions);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/AudioPermission.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/BooleanControl.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/BooleanControl.java?view=auto&rev=453536
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/BooleanControl.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/BooleanControl.java
Fri Oct  6 02:33:38 2006
@@ -0,0 +1,70 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.sound.sampled;
+
+public abstract class BooleanControl extends Control {
+
+    public static class Type extends Control.Type {
+        public static final Type APPLY_REVERB = new Type("APPLY_REVERB");
+
+        public static final Type MUTE = new Type("MUTE");
+
+        protected Type(String name) {
+            super(name);
+        }
+    }
+
+    protected boolean value;
+
+    private String trueStateLabel;
+
+    private String falseStateLabel;
+
+    protected BooleanControl(BooleanControl.Type type, boolean initialValue,
+            String trueStateLabel, String falseStateLabel) {
+        super(type);
+        this.value = initialValue;
+        this.trueStateLabel = trueStateLabel;
+        this.falseStateLabel = falseStateLabel;
+    }
+
+    protected BooleanControl(BooleanControl.Type type, boolean initialValue) {
+        super(type);
+        this.value = initialValue;
+    }
+
+    public void setValue(boolean value) {
+        this.value = value;
+    }
+
+    public boolean getValue() {
+        return this.value;
+    }
+
+    public String getStateLabel(boolean state) {
+        if (state == true) {
+            return this.trueStateLabel;
+        } else {
+            return this.falseStateLabel;
+        }
+    }
+
+    public String toString() {
+        throw new Error("Not yet implemented");
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/BooleanControl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Clip.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Clip.java?view=auto&rev=453536
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Clip.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Clip.java
Fri Oct  6 02:33:38 2006
@@ -0,0 +1,42 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.sound.sampled;
+
+import java.io.IOException;
+
+public interface Clip extends DataLine {
+    static final int LOOP_CONTINUOUSLY = -1;
+
+    int getFrameLength();
+
+    long getMicrosecondLength();
+
+    void loop(int count);
+
+    void open(AudioFormat format, byte[] data, int offset, int bufferSize)
+            throws LineUnavailableException;
+
+    void open(AudioInputStream stream) throws LineUnavailableException,
+            IOException;
+
+    void setFramePosition(int frames);
+
+    void setLoopPoints(int start, int end);
+
+    void setMicrosecondPosition(long microseconds);
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Clip.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/CompoundControl.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/CompoundControl.java?view=auto&rev=453536
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/CompoundControl.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/CompoundControl.java
Fri Oct  6 02:33:38 2006
@@ -0,0 +1,42 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.sound.sampled;
+
+public abstract class CompoundControl extends Control {
+    public static class Type extends Control.Type {
+        protected Type(String name) {
+            super(name);
+        }
+    }
+
+    private Control[] memberControls;
+
+    protected CompoundControl(CompoundControl.Type type,
+            Control[] memberControls) {
+        super(type);
+        this.memberControls = memberControls;
+    }
+
+    public Control[] getMemberControls() {
+        return this.memberControls;
+    }
+
+    public String toString() {
+        throw new Error("Not yet implemented");
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/CompoundControl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Control.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Control.java?view=diff&rev=453536&r1=453535&r2=453536
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Control.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Control.java
Fri Oct  6 02:33:38 2006
@@ -17,7 +17,39 @@
 
 package javax.sound.sampled;
 
-public class Control {
-    static class Type{
+public abstract class Control {
+
+    static class Type {
+        private String name;
+
+        protected Type(String name) {
+            this.name = name;
+        }
+
+        public final boolean equals(Object obj) {
+            throw new Error("Not yet imlemented");
+        }
+
+        public final int hashCode() {
+            throw new Error("Not yet imlemented");
+        }
+
+        public final String toString() {
+            throw new Error("Not yet imlemented");
+        }
+    }
+
+    private Control.Type type;
+
+    protected Control(Control.Type type) {
+        this.type = type;
+    }
+
+    public Control.Type getType() {
+        return this.type;
+    }
+
+    public String toString() {
+        throw new Error("Not yet imlemented");
     }
 }

Added: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/EnumControl.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/EnumControl.java?view=auto&rev=453536
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/EnumControl.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/EnumControl.java
Fri Oct  6 02:33:38 2006
@@ -0,0 +1,54 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.sound.sampled;
+
+public abstract class EnumControl extends Control {
+    public static class Type extends Control.Type {
+        public static final Type REVERB = new Type("REVERB");
+
+        protected Type(String name) {
+            super(name);
+        }
+    }
+
+    private Object[] values;
+
+    private Object value;
+
+    protected EnumControl(EnumControl.Type type, Object[] values, Object value) {
+        super(type);
+        this.value = value;
+        this.values = values;
+    }
+
+    public void setValue(Object value) {
+        this.value = value;
+    }
+
+    public Object getValue() {
+        return value;
+    }
+
+    public Object[] getValues() {
+        return values;
+    }
+
+    public String toString() {
+        throw new Error("Not yet implemented");
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/EnumControl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/FloatControl.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/FloatControl.java?view=auto&rev=453536
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/FloatControl.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/FloatControl.java
Fri Oct  6 02:33:38 2006
@@ -0,0 +1,143 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.sound.sampled;
+
+public abstract class FloatControl extends Control {
+
+    public static class Type extends Control.Type {
+        public static final Type MASTER_GAIN = new Type("MASTER_GAIN");
+
+        public static final Type AUX_SEND = new Type("AUX_SEND");
+
+        public static final Type AUX_RETURN = new Type("AUX_RETURN");
+
+        public static final Type REVERB_SEND = new Type("REVERB_SEND");
+
+        public static final Type REVERB_RETURN = new Type("REVERB_RETURN");
+
+        public static final Type VOLUME = new Type("VOLUME");
+
+        public static final Type PAN = new Type("PAN");
+
+        public static final Type BALANCE = new Type("BALANCE");
+
+        public static final Type SAMPLE_RATE = new Type("SAMPLE_RATE");
+
+        protected Type(String name) {
+            super(name);
+        }
+    }
+
+    protected FloatControl(FloatControl.Type type, float minimum,
+            float maximum, float precision, int updatePeriod,
+            float initialValue, String units, String minLabel, String midLabel,
+            String maxLabel) {
+        super(type);
+        this.maximum = maximum;
+        this.maxLabel = maxLabel;
+        this.midLabel = midLabel;
+        this.minLabel = minLabel;
+        this.minimum = minimum;
+        this.precision = precision;
+        this.units = units;
+        this.updatePeriod = updatePeriod;
+        this.value = initialValue;
+    }
+
+    protected FloatControl(FloatControl.Type type, float minimum,
+            float maximum, float precision, int updatePeriod,
+            float initialValue, String units) {
+        super(type);
+        this.maximum = maximum;
+        this.maxLabel = "";
+        this.midLabel = "";
+        this.minLabel = "";
+        this.minimum = minimum;
+        this.precision = precision;
+        this.units = units;
+        this.updatePeriod = updatePeriod;
+        this.value = initialValue;
+    }
+
+    private float value;
+
+    private float maximum;
+
+    private float minimum;
+
+    private String units;
+
+    private String minLabel;
+
+    private String midLabel;
+
+    private String maxLabel;
+
+    private float precision;
+
+    private int updatePeriod;
+
+    public void setValue(float newValue) {
+        this.value = newValue;
+    }
+
+    public float getValue() {
+        return this.value;
+    }
+
+    public float getMaximum() {
+        return this.maximum;
+    }
+
+    public float getMinimum() {
+        return this.minimum;
+    }
+
+    public String getUnits() {
+        return this.units;
+    }
+
+    public String getMinLabel() {
+        return this.minLabel;
+    }
+
+    public String getMidLabel() {
+        return this.midLabel;
+    }
+
+    public String getMaxLabel() {
+        return this.maxLabel;
+    }
+
+    public float getPrecision() {
+        return this.precision;
+    }
+
+    public int getUpdatePeriod() {
+        return this.updatePeriod;
+    }
+
+    public void shift(float from, float to, int microseconds) {
+        throw new Error("Not yet implemented");
+    }
+
+    public String toString() {
+        throw new Error("Not yet implemented");
+    }
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/FloatControl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Port.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Port.java?view=auto&rev=453536
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Port.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Port.java
Fri Oct  6 02:33:38 2006
@@ -0,0 +1,77 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.sound.sampled;
+
+import javax.sound.sampled.Line;
+
+public interface Port extends Line {
+
+    public static class Info extends Line.Info {
+
+        private String name;
+
+        private boolean isSource;
+
+        public static final Info MICROPHONE = new Info(Port.class,
+                "MICROPHONE", true);
+
+        public static final Info LINE_IN = new Info(Port.class, "LINE_IN", true);
+
+        public static final Info COMPACT_DISC = new Info(Port.class,
+                "COMPACT_DISC", true);
+
+        public static final Info SPEAKER = new Info(Port.class, "SPEAKER",
+                false);
+
+        public static final Info HEADPHONE = new Info(Port.class, "HEADPHONES",
+                false);
+
+        public static final Info LINE_OUT = new Info(Port.class, "LINE_OUT",
+                false);
+
+        public Info(Class<?> lineClass, String name, boolean isSource) {
+            super(lineClass);
+            this.name = name;
+            this.isSource = isSource;
+        }
+
+        public String getName() {
+            return this.name;
+        }
+
+        public boolean isSource() {
+            return this.isSource;
+        }
+
+        public boolean matches(Line.Info info) {
+            throw new Error("not yet implemented");
+        }
+
+        public final boolean equals(Object obj) {
+            throw new Error("not yet implemented");
+        }
+
+        public final int hashCode() {
+            throw new Error("not yet implemented");
+        }
+
+        public final String toString() {
+            throw new Error("not yet implemented");
+        }
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/Port.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/ReverbType.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/ReverbType.java?view=auto&rev=453536
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/ReverbType.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/ReverbType.java
Fri Oct  6 02:33:38 2006
@@ -0,0 +1,80 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.sound.sampled;
+
+public class ReverbType {
+
+    protected ReverbType(String name, int earlyReflectionDelay,
+            float earlyReflectionIntensity, int lateReflectionDelay,
+            float lateReflectionIntensity, int decayTime) {
+        this.name = name;
+        this.earlyReflectionDelay = earlyReflectionDelay;
+        this.earlyReflectionIntensity = earlyReflectionIntensity;
+        this.lateReflectionDelay = lateReflectionDelay;
+        this.lateReflectionIntensity = lateReflectionIntensity;
+        this.decayTime = decayTime;
+    }
+
+    private String name;
+
+    private int earlyReflectionDelay;
+
+    private float earlyReflectionIntensity;
+
+    private int lateReflectionDelay;
+
+    private float lateReflectionIntensity;
+
+    private int decayTime;
+
+    public String getName() {
+        return this.name;
+    }
+
+    public final int getEarlyReflectionDelay() {
+        return this.earlyReflectionDelay;
+    }
+
+    public final float getEarlyReflectionIntensity() {
+        return this.earlyReflectionIntensity;
+    }
+
+    public final int getLateReflectionDelay() {
+        return this.lateReflectionDelay;
+    }
+
+    public final float getLateReflectionIntensity() {
+        return this.lateReflectionIntensity;
+    }
+
+    public final int getDecayTime() {
+        return this.decayTime;
+    }
+
+    public final boolean equals(Object obj) {
+        throw new Error("Not yet implemented");
+    }
+
+    public final int hashCode() {
+        throw new Error("Not yet implemented");
+    }
+
+    public final String toString() {
+        throw new Error("Not yet implemented");
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/ReverbType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/SourceDataLine.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/SourceDataLine.java?view=auto&rev=453536
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/SourceDataLine.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/SourceDataLine.java
Fri Oct  6 02:33:38 2006
@@ -0,0 +1,28 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.sound.sampled;
+
+public interface SourceDataLine extends DataLine {
+    
+    void open(AudioFormat format) throws LineUnavailableException;
+
+    void open(AudioFormat format, int bufferSize)
+            throws LineUnavailableException;
+
+    int write(byte[] b, int off, int len);
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/SourceDataLine.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/TargetDataLine.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/TargetDataLine.java?view=auto&rev=453536
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/TargetDataLine.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/TargetDataLine.java
Fri Oct  6 02:33:38 2006
@@ -0,0 +1,28 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.sound.sampled;
+
+public interface TargetDataLine extends DataLine {
+
+    void open(AudioFormat format) throws LineUnavailableException;
+
+    void open(AudioFormat format, int bufferSize)
+            throws LineUnavailableException;
+
+    int read(byte[] b, int off, int len);
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/sound/src/main/java/javax/sound/sampled/TargetDataLine.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message