Hello, I have a problem, I want to play some long sound files for a playlist made in C++ and the .wav files makes the file so big. Can you help me to play in another format, somehow?
PlaySound will only play .wav files. To play files of any other format, you will have to write a decoder and play those files. The easiest solution would be to use a library for this purpose, but if you want to do it yourself, I suggest taking a look at the waveOut family of functions. These functions play raw music data. You will have to write a decoder to convert the file format you wish to play to raw music data, how to implement the decoder depends on the file format you wish to play.