update mixer write for non-integral frames
update mixer quit to properly stop thread