bugfix for mixer.lua

There was a performance problem.