I installed the audio_feeds module. M3U and XSPF feed generation worked fine but PLS doesn't work.

I think the following line 170 needs to be changed

from:
$children = $playlist->audio_attach;

To:
$children = $node->audio_attach;

It fixed my problem.