Veynn's post in Screen Recording software not recording sound. was marked as the answer
I found the solution.
I'm using Asus Xonar DG sound card and I have the GF effects mode ON. I turned it off and now it records the sound.
It looks like PoE doesn't want its sound recorded with sound card effects on. I don't have problem with this with other games.