// MP3's are special-cased
def = MP3Helper.getSoundDefinition(resource.openStream());
} else {
// Otherwise, fall back to a helper based on javax.sound
ADPCMHelper helper = new ADPCMHelper(resource.openStream(), 30);
def = helper.getSoundDefinition();
}
sounds.put(name, def);
} catch (IOException e) {
logger.log(TreeLogger.ERROR, "Unable to open resource", e);