i want to play sound data in wavfile

i can make wavfile with c language.
And i would play wavfile.
but i want to play wavfile without playsound function.

if i have wavfile data, How i make sound with this data ?
What can i do for this ?
Help me please.
Hi, I understand that you don't want to play it with the WinAPI PlaySound() function.
Why? Do you want it platform independent?
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.
You are asking to do X without (library that does X).

"I want to drive to Seattle, but I don't want to use a car."

"I want to bake a cake, but I don't want to use an oven."

etc

If you want to play a sound, you must use a sound-playing library. Google searches don't even have to be very coherent: "c/c++ library play wav" → https://www.google.com/search?q=c%2Fc%2B%2B+library+play+wav
Last edited on
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.

https://hero.handmade.network/episodes
Last edited on
Topic archived. No new replies allowed.