I have created the game snake in C that will run on Windows. I want to add sounds when the user hits certain keys or if the snake does certain things.
I know how to do this in C on MacOS but I don't know how to do it on Windows.
I tried to compile using a playsound()
function I found on Google but I get an error message that indicates that playsound doesn't exist.
I tried to play the sound played by Windows when you type control G into run but this led me down a horrible rabbit hole of never ending and not helpful code.
I have no code to post at this time.