/*
* 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.
*/
/**
* WAVE file reader for files using format WAVE_FORMAT_EXTENSIBLE (0xFFFE).
*
* @author Karl Helgason
*/
static private class GUID {
long i1;
int s1;
int s2;
int x1;
int x2;
int x3;
int x4;
int x5;
int x6;
int x7;
int x8;
private GUID() {
}
}
return d;
}
public int hashCode() {
return (int) i1;
}
return false;
return false;
return false;
return false;
return false;
return false;
return false;
return false;
return false;
return false;
return false;
return false;
return true;
}
}
"BL",
"BR", // 5.1
"FLC", "FLR", "BC", "SL", "SR", "TC", "TFL", "TFC", "TFR", "TBL",
"TBC", "TBR" };
"w6", "w7", "w8", "w9", "w10", "w11", "w12", "w13", "w14", "w15",
"w16", "w17", "w18", "w19", "w20", "w21", "w22", "w23", "w24",
"w25", "w26", "w27", "w28", "w29", "w30", "w31", "w32", "w33",
"w34", "w35", "w36", "w37", "w38", "w39", "w40", "w41", "w42",
"w43", "w44", "w45", "w46", "w47", "w48", "w49", "w50", "w51",
"w52", "w53", "w54", "w55", "w56", "w57", "w58", "w59", "w60",
"w61", "w62", "w63", "w64" };
0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
long m = 1;
if ((channelmask & m) != 0L) {
if (i < channelnames.length) {
} else {
}
}
m *= 2L;
}
return null;
}
throws UnsupportedAudioFileException, IOException {
try {
} finally {
}
return format;
}
throws UnsupportedAudioFileException, IOException {
throw new UnsupportedAudioFileException();
throw new UnsupportedAudioFileException();
boolean fmt_found = false;
boolean data_found = false;
int channels = 1;
long samplerate = 1;
// long framerate = 1;
int framesize = 1;
int bits = 1;
int validBitsPerSample = 1;
long channelMask = 0;
while (riffiterator.hasNextChunk()) {
fmt_found = true;
if (format != 0xFFFE)
throw new UnsupportedAudioFileException(); // WAVE_FORMAT_EXTENSIBLE
// only
if (cbSize != 22)
throw new UnsupportedAudioFileException();
if (validBitsPerSample > bits)
throw new UnsupportedAudioFileException();
}
data_found = true;
break;
}
}
if (!fmt_found)
throw new UnsupportedAudioFileException();
if (!data_found)
throw new UnsupportedAudioFileException();
if (s_channelmask != null)
if (channelMask != 0)
// validBitsPerSample is only informational for PCM data,
// data is still encode according to SampleSizeInBits.
if (bits == 8) {
false, p);
} else {
}
} else
throw new UnsupportedAudioFileException();
return fileformat;
}
throws UnsupportedAudioFileException, IOException {
throw new UnsupportedAudioFileException();
throw new UnsupportedAudioFileException();
while (riffiterator.hasNextChunk()) {
.getSize());
}
}
throw new UnsupportedAudioFileException();
}
throws UnsupportedAudioFileException, IOException {
try {
} finally {
}
return format;
}
throws UnsupportedAudioFileException, IOException {
try {
} finally {
}
return format;
}
throws UnsupportedAudioFileException, IOException {
}
throws UnsupportedAudioFileException, IOException {
file)));
}
}