The easiest way to fix that is to use DXSound instead of API.