/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Wavetable oscillator for pre-loaded data.
*
* @author Karl Helgason
*/
private final boolean bigendian;
private final int framesize_pc;
}
if (avail <= 0)
return -1;
if (bigendian) {
pos += framesize_pc;
pos2 += 1;
}
} else {
pos += framesize_pc;
pos2 += 1;
}
}
return len;
}
if (avail <= 0)
return -1;
if (n > avail)
n = avail;
return super.skip(n);
}
}
byte[] b = new byte[1];
if (ret == -1)
return -1;
return 0 & 0xFF;
}
public boolean markSupported() {
return true;
}
}
}
}
}
}
float pitchcorrection) {
this.pitchcorrection = pitchcorrection;
}
}
float pitchcorrection) {
this.pitchcorrection = pitchcorrection;
}
}
return buffer8;
}
return buffer;
}
return null;
try {
} catch (Exception e) {
//e.printStackTrace();
}
try {
} catch (IOException e) {
//e.printStackTrace();
}
return format;
}
return format;
}
return null;
try {
} catch (Exception e) {
//e.printStackTrace();
return null;
}
}
}
format.isBigEndian());
}
}
}
public int getChannels() {
return getFormat().getChannels();
}
// ModelWavetableOscillator doesn't support ModelOscillatorStream
return null;
}
// attenuation is in cB
public float getAttenuation() {
return attenuation;
}
// attenuation is in cB
this.attenuation = attenuation;
}
public float getLoopLength() {
return loopLength;
}
this.loopLength = loopLength;
}
public float getLoopStart() {
return loopStart;
}
}
}
public int getLoopType() {
return loopType;
}
public float getPitchcorrection() {
return pitchcorrection;
}
this.pitchcorrection = pitchcorrection;
}
}