Beaglebone black play audio with TCP command

Hello

I would like to write a c code which will play audio like wav or mp3 from USB audio adapter when it receives a TCP command from Ethernet interface. To do this I will use a cheap USB Audio Adapter and Beagle Bone Black. Can anybody help me to write the code from scratch ? I need suggestions for this project.

USB Audio Adapter

Regards