Alpha is a value between 0 and 1.It can control the power-ratio of background and foreground sounds(the two chars you get from samples)
You can also use fixed calculation: assume that alpha has 256 levels,
then the blending equation is:
new_data = ( data1 * alpha + data2 * ( 255 - alpha ) )>>8
Note:(>>8 == /256)