So in Windows, you can use the PlaySound function to play an MP3 file in a C++ application. What would be some similar functions available for use in Mac OS X/Linux? I would also appreciate it if you could link to some sample Hello-World type programs demonstrating this.
So in Windows, you can use the PlaySound function to play an MP3 file
Share
You can just
open("/dev/dsp")and write to it. That’s as “native syscall” as you can get, I believe.