Ok guys this bug bothered me alot. And I still believe it has to do with dsp manager.
Try this, when the music stops open dsp manager and select check equalizer. And see how the music comes back.
In short, when you flash cm. Open dsp manager and select turn on equalizer on headset you dont...