improved algorithm to virtualize sounds