aboutsummaryrefslogtreecommitdiff
path: root/Linux_C_12/cTCP_121.h
diff options
context:
space:
mode:
authorCamil Staps2015-08-24 09:06:36 +0200
committerCamil Staps2015-08-24 09:06:36 +0200
commitd0c6816d1d217b5391c6d85c21d24615b3e5753c (patch)
tree9541929bb9f5e1e13fc7b6ad21c6a01dc1681f70 /Linux_C_12/cTCP_121.h
parentResizing 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/cTCP_121.h')
0 files changed, 0 insertions, 0 deletions