Hi i was trying to make a video game.
Do you may ask why you are using c++ not a game engine.
Beacuse i don't want enter licensing things and i think free engines not for me
but recently i think . I need a sound library.
I saw fmod but it's priced.
Also i i see PlaySound it seems to free but i can't find any license about PlaySound i don't know commerical is allowned or not on PlaySound.If allowned please say in comments but what is difference why Fmod .
What is difference two of them plays sound. I do not care 3d sound or etc.
My plan was generating fake 3d sound. Like if player leaves an area sound fades and ends.
I wonder what difference of Fmod.
Which is better.
I have just about 0 experience in incorporating audio into programs, but I think OpenAL is meant to be an open replacement to proprietary things like DirectSound. https://en.wikipedia.org/wiki/OpenAL
Of course, things like DirectSound are still free to use, just like how DirectX is a Windows-only alternative to OpenGL. Apparently, DirectSound is deprecated and Microsoft recommends using XAudio2 (just from searching, haven't used it myself).
PlaySound? Can you link what you're talking about? If you're referring to the Win32 function, that isn't a library... it's just a single windows function that anyone can use.