good mornig

i would like to know how to make a function that can play one song that's saved in a file?

You mean functions? Try to find open source decoders (very hard process) wich decode the file and send the raw pcm data to audio device. Writing decoder on your own without experiance is insane. Wish you luck

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.