Patch to solve balance problem
Hello! I like and use the wmix-program. Thank you for a great program!
Recently I stumbled upon a strange bug. When balance is set slightly towards left or right, it will slowly creep away when adjusting the volume thereafter.
The problem seems to be rounding between integers and float. In mixer-oss.c this seems to have been covered by introduction of the prev_dev_lr_volume field. However, this doesn't fully solve my problem.
I added the following line at the end of the function "set_mixer_state" in file "mixer-oss.c":
mixer[cur_channel].prev_dev_lr_volume = dev_lr_volume;
This can maybe help someone else experiencing the same bug (I don't know if this line will cause some major havoc in other places)...