I don't believe the iRig will work. It's only input is instrument level.
The sonicport will work. The VX version of the sonicport can also keep most iDevices powered via a USB battery. If thats not needed there is a non VX version that is much less expensive (they also show up on ebay cheaply)