Play Sound vs Fmod

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.

Libraries like SFML also have audio modules. You can use the audio component separate from the graphics component.
https://www.sfml-dev.org/tutorials/2.5/audio-sounds.php

I'm sure there's plenty of other alternatives.
Last edited on
closed account (E8A4Nwbp)
You can try the cocos engine's audio engine. It has two,

Experimental (it's very robust now) Audio engine
https://github.com/cocos2d/cocos2d-x/blob/v4/cocos/audio/AudioEngine.cpp
or
Simple audio engine.
https://github.com/cocos2d/cocos2d-x/blob/v4/cocos/editor-support/cocostudio/SimpleAudioEngine.cpp

May take effort to extract the engine itself, but they're both easy and powerful in my opinion. I use Experimental.
Topic archived. No new replies allowed.