Plugging in USB headset causes sound to become garbled

When I plug in my USB headset (it has both stereo sound and microphone), some applications automatically switch the stereo output to the headset and the sound becomes extremely garbled and static-y. Some applications, like Audacity, simply crash entirely.

I’m using KDE4 with Phonon. I have no idea what is causing this but it is extremely annoying.