If you are serious about game development you might perhaps be better of with using a specifically tailored solution for that such as for example SDL, castle game engine, raylib etc.
As mentioned before it is quire possible to play sounds/music but you would have to decide on which back-end you wish to use. And making that choice depends on what you eventually want to do/accomplish.