Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- byte[] bytes = new byte[frameLength];
- for(int i = 0; i < fh.nFrames; i++) {
- raf.readFully(bytes);
- for(int j = 2; j < frameLength/2; j++) {
- short s;
- s = (short) (bytes[2*j + 1] << 8 | bytes[2 * j]);
- System.out.println(s);
- System.out.println(Integer.toBinaryString(s));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement