private void loadDatabaseHeader(ByteBuffer bb) throws IOException {
  if (bb.getInt() != MAGIC) {
    throw new Error("Bad magic in db");
  }
  if (bb.getInt() != VERSION) {
    throw new Error("Bad VERSION in db");
  }
  sampleRate=bb.getInt();
  numChannels=bb.getInt();
  lpcMin=bb.getFloat();
  lpcRange=bb.getFloat();
}

private void loadDatabaseHeader ( ByteBuffer bb ) throws IOException { if ( bb . getInt ( ) != MAGIC ) { throw new Error ( "Bad magic in db" ) ; } if ( bb . getInt ( ) != VERSION ) { throw new Error ( "Bad VERSION in db" ) ; } sampleRate = bb . getInt ( ) ; numChannels = bb . getInt ( ) ; lpcMin = bb . getFloat ( ) ; lpcRange = bb . getFloat ( ) ; }
loads the database header from the given byte buffer .
