Playing a sound file

Is there really no Linux API to just play a file? Something like: id = cache_file(“foo.ogg”); // cache the sample play(id); // play to default device libcanberra seems to only support playing stuff from a sound theme, not a file. PulseAudio seems to require setting up a main loop thing, creating a context, converting the […]