diff options
author | Camil Staps | 2015-08-24 09:06:36 +0200 |
---|---|---|
committer | Camil Staps | 2015-08-24 09:06:36 +0200 |
commit | d0c6816d1d217b5391c6d85c21d24615b3e5753c (patch) | |
tree | 9541929bb9f5e1e13fc7b6ad21c6a01dc1681f70 /Linux_C_12/cpicture_121.c | |
parent | Resizing bitmaps (diff) |
Fixing winPlaySound
There doesn't seem to be a straightforward universal way to play a
wav file on Linux. If someone has pulseaudio installed, this command
now simply does a system() call with `paplay ...`. This fails if the
program is not installed, but in any case a True success bool is re-
turned.
Ideally, we wouldn't need system() (which forces us to include
stdlib.h), and would just use a library for this - but I didn't find
one at the moment.
See: http://unix.stackexchange.com/a/8610/37050
Diffstat (limited to 'Linux_C_12/cpicture_121.c')
0 files changed, 0 insertions, 0 deletions