libao: WAV device doesn't print error when device is full
This is copied from Debian BTS bug #130816:
I used ogg123 to convert an OGG file to a WAV. However, my hard drive
was full. ogg123 didn't tell me this, but happily continued just as
if everything was working fine. In the end, I winded up with an empty
file. It would be nice if a "No space left on device" error would be
printed.
1097:tbm@fisch: ..iseducation_of_lauryn_hill] ogg123 -d wav -f ~/audio-test-2/
lh-005.wav 005-doo_wop_\(that_thing\).ogg
Device: WAV file output
Author: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
Comments: Sends output to a .wav file
Playing: 005-doo_wop_(that_thing).ogg
Title: Doo Wop (That Thing)
Artist: Lauryn Hill
Album: The Miseducation Of Lauryn Hill
Track number: 5
Done.
1098:tbm@fisch: ..iseducation_of_lauryn_hill] ls -l ~/audio-test-2/lh-005.wav
-rw-r--r-- 1 tbm tbm 0 Jan 25 20:23 /home/tbm/
audio-test-2/lh-005.wav
1099:tbm@fisch: ..iseducation_of_lauryn_hill] df ~/audio-test-2
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda7 1912360 1815216 0 100% /home