Thank you, your reply.
Umm, if it is possible to play sound without playsound function,
I think I can play the sound without making a wavfile.
So I want to make sound with only wav file data.
Perhaps days 7, 8 and 9 of Casey Muratori's "Handmade Hero" will help you. They're windows based, but the principles of generating sound from raw data are the same.