IR protocol problems

rawCodes[RAWBUF][10]

rawCodes[10][RAWBUF] would be more like it.

Also, not sure which processor you have, but 1500 bytes of buffer (plus the library's usage) is pushing it a bit for a device that may only have 1K bytes of RAM.