if (props.containsKey("date")) date = (Date) props.get("date");
if (props.containsKey("comment")) comment = (String) props.get("comment");
if (props.containsKey("album")) album = (String) props.get("album");
if (props.containsKey("track")) track = (String) props.get("track");
if (props.containsKey("genre")) genre = (String) props.get("genre");
AudioFormat af = aff.getFormat();
channels = af.getChannels();
samplerate = (int) af.getSampleRate();
bitspersample = af.getSampleSizeInBits();
if (af instanceof TAudioFormat)
{
props = ((TAudioFormat) af).properties();
if (props.containsKey("bitrate")) bitrate = ((Integer) props.get("bitrate")).intValue();
if (props.containsKey("ape.version")) version = ((Integer) props.get("ape.version")).intValue();