Regarding the error that you get, I took this line basically from your opening post; you will have to figure out what the *** is.
irsend.send***(presets[selectedPreset][cnt], 10); // TV code
If you don't know what the *** must be, maybe try the IRrecord demo to find that out.