!7

lib 1006985 // JAAD for AAC decoding

import javax.sound.sampled.*;

p {
  File file = getProgramFile(#1006739, "Prince - Motherless Child - Live!-99Q31nyH16w.m4a");
  assertTrue("Please run #1006739", file.exists());
  fixContextClassLoader();
  AudioInputStream ais = AudioSystem.getAudioInputStream(file);
  AudioInputStream a;
  int numBytes = ais.available();
  System.out.println("numbytes: "+numBytes);
  byte[] buffer = new byte[numBytes];
  int count=0;
  while (count!=-1)
    count=ais.read(buffer, count, numBytes-count);
  print("Read " + count + " bytes");
}