create function mix_wave_buffers