DispatchObject dispatchObjects[] = new DispatchObject[tracksToConvert.length];
for (int i = 0; i < tracksToConvert.length; i++) {
dispatchObjects[i] = tracksToConvert[i].getDispatchObject();
}
ResultObject result = this.iTunesCom.callFunction("ConvertTracks2", dispatchObjects);
return new ITOperationStatusImpl(result.getDispatch());
} catch (ITUNES_E_CONVERSIONINPROGRESS e) {
throw new ConversionInProgressException();
} catch (DispatchObjectNullException e) {
throw new ConvertOperationFailed("Convert operation for several tracks failed!");
}