short left, right; left = abData[i]; if (left < 0) left += 256; left = (short)(left | (abData[i+1] << 8)); right = abData[i+2]; if (right < 0) right += 256; right = (short)(right | (abData[i+3] << 8)); |
short left, right; left = (short)(abData[i ] & 0xff | (abData[i+1] << 8)); right = (short)(abData[i+2] & 0xff | (abData[i+3] << 8)); |
ReadWave.java を修正したものに入れ替えておく。