*
* @param prefix prefix of parameter where parameter can be found.
* @return audio model object.
*/
private Audio getAudio() throws ConverterException {
Audio audio = new Audio();
// Set standard media parameters
setMediaParameters(audio);
// Set audio size.
String limitParameter = getParameterValue(ParameterNames.MAX_AUDIO_SIZE);
if (limitParameter != null) {
audio.setSizeLimit(Long.parseLong(limitParameter));
}
// Set audio specific parameters.
audio.setCodec(getParameterValue(ParameterNames.AUDIO_CODEC));
return audio;
}