implemented wave_buffer.h function and tested some functions