modules/mixaudio: ported changes from astra3