Difference in loudness with (Fast)AGI actions

I have 2 files (.wav format) that have quit the same volume when played on a ‘normal’ player.
When used in Asterisk (STREAM FILE) then one is much louder then the other.
Has this something to do with the codec? And are there other users that experience this/
And of course, did anybody manage to fix/get around this?