modified to bpaudio engine