I'm making game engine. I think im pretty great with graphical stuff but i have no idea how sound works in computers.
All i know right now is that there's a sound files for example wav and programs what play it.
There are games what play wav by i guess manipulate with sound buffer for example by making sound 3D
( You know, make it seems like sound is playing behind you for example )
And some game engine are changing sound this way, that it feels like it is playing underwater or with echo.
Well, my wish is to learn how do they do it and create something on my own.
I wish to create sound engine what is able to do similar like fl studio does.
If you don't know what program it is then few things what im having in my mind:
Changing sound pitch, changing sound pitch without increasing/decreasing sound length, increasing/decreasing sound length without changing pitch, making sound echo, controlling how loud sound is playing in left or right speaker basically everything what comes to my mind and doing all this in real time not pre rendering things.
All i need to know is how to create basic buffer and play a sound.
When i know that, i can start playing with it and for example create my own sound files and stuff.