public void fromXML( Document domDoc, Element node, Map options )
throws IOException
{
super.fromXML( domDoc, node, options );
InterleavedStreamFile iff;
float[][] frameBuf = new float[ 1 ][];
int size;
// read the tables from a named getName() in the directory getDirectory()
// File f2 = new File( getDirectory(), getName() + SUFFIX_DISTANCE );
// System.err.println( "file name : "+f2.getAbsolutePath() );
iff = AudioFile.openAsRead( new File( new File( (File) options.get(
XMLRepresentation.KEY_BASEPATH ), SUBDIR ), getName() + SUFFIX_DISTANCE ));
size = (int) iff.getFrameNum();
if( size != distanceTable.length ) {
distanceTable = new float[ size ];
}
frameBuf[ 0 ] = distanceTable;
iff.readFrames( frameBuf, 0, size );
iff.close();
iff = AudioFile.openAsRead( new File( new File( (File) options.get(
XMLRepresentation.KEY_BASEPATH ), SUBDIR ), getName() + SUFFIX_ROTATION ));
size = (int) iff.getFrameNum();
if( size != rotationTable.length ) {
rotationTable = new float[ size ];
}
frameBuf[ 0 ] = rotationTable;
iff.readFrames( frameBuf, 0, size );
iff.close();
}