Fix volume issues

Now the volume is constantly changed when the volume slider is dragged.

fix #30
fix #31