sound: refactor code, rename wrap.c to sound.c and
update test code

Change-Id: Id2bf62d650c2f8023f20312345f9bf57277135c2