1 /* 2 * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package com.sun.media.sound; 27 28 /** 29 * ModelAbstractChannelMixer is ready for use class to implement 30 * ModelChannelMixer interface. 31 * 32 * @author Karl Helgason 33 */ 34 public abstract class ModelAbstractChannelMixer implements ModelChannelMixer { 35 36 @Override 37 public abstract boolean process(float[][] buffer, int offset, int len); 38 39 @Override 40 public abstract void stop(); 41 42 @Override 43 public void allNotesOff() { 44 } 45 46 @Override 47 public void allSoundOff() { 48 } 49 50 @Override 51 public void controlChange(int controller, int value) { 52 } 53 54 @Override 55 public int getChannelPressure() { 56 return 0; 57 } 58 59 @Override 60 public int getController(int controller) { 61 return 0; 62 } 63 64 @Override 65 public boolean getMono() { 66 return false; 67 } 68 69 @Override 70 public boolean getMute() { 71 return false; 72 } 73 74 @Override 75 public boolean getOmni() { 76 return false; 77 } 78 79 @Override 80 public int getPitchBend() { 81 return 0; 82 } 83 84 @Override 85 public int getPolyPressure(int noteNumber) { 86 return 0; 87 } 88 89 @Override 90 public int getProgram() { 91 return 0; 92 } 93 94 @Override 95 public boolean getSolo() { 96 return false; 97 } 98 99 @Override 100 public boolean localControl(boolean on) { 101 return false; 102 } 103 104 @Override 105 public void noteOff(int noteNumber) { 106 } 107 108 @Override 109 public void noteOff(int noteNumber, int velocity) { 110 } 111 112 @Override 113 public void noteOn(int noteNumber, int velocity) { 114 } 115 116 @Override 117 public void programChange(int program) { 118 } 119 120 @Override 121 public void programChange(int bank, int program) { 122 } 123 124 @Override 125 public void resetAllControllers() { 126 } 127 128 @Override 129 public void setChannelPressure(int pressure) { 130 } 131 132 @Override 133 public void setMono(boolean on) { 134 } 135 136 @Override 137 public void setMute(boolean mute) { 138 } 139 140 @Override 141 public void setOmni(boolean on) { 142 } 143 144 @Override 145 public void setPitchBend(int bend) { 146 } 147 148 @Override 149 public void setPolyPressure(int noteNumber, int pressure) { 150 } 151 152 @Override 153 public void setSolo(boolean soloState) { 154 } 155 }