Using SoftPWM and IRremote libraries on Mega 2560

So I am writing some code to decode a IR remote and also output PWM to non PWM pins.
My question is, can these be used together? I know both use timer 2 so where would I change this for one of them?

You can re-configure the same timer to provide the required function as long as you dont need both functionality active at the same time.

...or...

As you suggested you can change timers used by the library.

For IRremote, just change (untested by me)

......
// Arduino Duemilanove, Diecimila, LilyPad, Mini, Fio, etc
#else
  //#define IR_USE_TIMER1   // tx = pin 9
  #define IR_USE_TIMER2     // tx = pin 3
#endif

to

// Arduino Duemilanove, Diecimila, LilyPad, Mini, Fio, etc
#else
  #define IR_USE_TIMER1   // tx = pin 9
  //#define IR_USE_TIMER2     // tx = pin 3
#endif

You could also look at IRLib, which is a re-write of IRremote and has lots of configuration options.

Almost forgot...code is located in IRremoteInt.h in the IRremote directory.

you may have to restart the Arduino IDE for the change to take effect!

Thanks so much!
I feel retarded now because I couldn't find where it was setup, didn't look in the init file lol.

I presume you noticed that the changes need to be made to the Mega section and not the one I posted...