So I've been on pretty much every rom and so I will share my experience with each of them considering headphone audio quality, sound, and volume. I've used my HD 598 and Momentum in-ears on each Rom with no sound effect on.
Stock marshmallow G (And a room that was based on stock U): well I actually found that the sound on marshmallow is one of the best on both super and standard setting with a clean and flat signal but on the European (G model) the volume is very very low which is a big downside of marshmallow on G model.
TL;DR: Good clean sound, extremely low volume on G model.
Stock nougat, both G and U: here I found the sound on both G and U to be the same which is probably true since the "mixer_paths" were identical. IMO the sound was somewhat muffled with the super setting turned on along with it having a 10k+ boost which made for artificial highs in some music. Changing to standard solved the sound issues but then the sound was once again very low in volume output.
TL;DR: Super: Muddy bass, boosted top frequencys. Standard: Clean sound, low volume.
Lineage OS/Resurrection Remix: once again identical sound and identical "mixer_paths" files. On these Roms the sound is very strong and significantly louder than on any stock Rom. However, I found the sound to be very muffled with alot off boosted bass despite no sound effects being on or installed. I didn't like the like the sound on these Rims at all and couldn't really here any improvement over my old Nexus in sound quality since the boosted bass just took over and sort of layer on top of all the other frequencys.
TL;DR: Very loud signal with lack of quality due to very boosted bass.
Nucler Rom: Now we are talking. I feel like this Rom has the best of both Lineage and stock. The sound is just as loud as on Lineage/RR but the boosted bass is no more. I found this Rom to have just as a flat and clean signal as atleast stock nougat and probably as good as stock marshmallow on the U model but with a stronger and louder sound.
TL;DR: Loud volume output with a clean and flat signal.
If I were to recommend a Rom based on headphone audio qualty it would be either Stock marshmallow or Nuclear with Nuclear having a louder volume output and stock marshmallow having the option to use the super setting which I believe is just a tuning from ZTE to make the sound perceived as better with just boosted bass and treble and also a louder volume which is all classic tricks companies use to simulate high quality sound.
Stock marshmallow G (And a room that was based on stock U): well I actually found that the sound on marshmallow is one of the best on both super and standard setting with a clean and flat signal but on the European (G model) the volume is very very low which is a big downside of marshmallow on G model.
TL;DR: Good clean sound, extremely low volume on G model.
Stock nougat, both G and U: here I found the sound on both G and U to be the same which is probably true since the "mixer_paths" were identical. IMO the sound was somewhat muffled with the super setting turned on along with it having a 10k+ boost which made for artificial highs in some music. Changing to standard solved the sound issues but then the sound was once again very low in volume output.
TL;DR: Super: Muddy bass, boosted top frequencys. Standard: Clean sound, low volume.
Lineage OS/Resurrection Remix: once again identical sound and identical "mixer_paths" files. On these Roms the sound is very strong and significantly louder than on any stock Rom. However, I found the sound to be very muffled with alot off boosted bass despite no sound effects being on or installed. I didn't like the like the sound on these Rims at all and couldn't really here any improvement over my old Nexus in sound quality since the boosted bass just took over and sort of layer on top of all the other frequencys.
TL;DR: Very loud signal with lack of quality due to very boosted bass.
Nucler Rom: Now we are talking. I feel like this Rom has the best of both Lineage and stock. The sound is just as loud as on Lineage/RR but the boosted bass is no more. I found this Rom to have just as a flat and clean signal as atleast stock nougat and probably as good as stock marshmallow on the U model but with a stronger and louder sound.
TL;DR: Loud volume output with a clean and flat signal.
If I were to recommend a Rom based on headphone audio qualty it would be either Stock marshmallow or Nuclear with Nuclear having a louder volume output and stock marshmallow having the option to use the super setting which I believe is just a tuning from ZTE to make the sound perceived as better with just boosted bass and treble and also a louder volume which is all classic tricks companies use to simulate high quality sound.