If /dev/mixer does not exist, para_fade fails with
main: No such file or directory
This is a rather bad error message, since the name of the missing file
is not mentioned. This patch makes oss_mix.c print the additional line
oss_mix_open: could not open /dev/mixer
dev = "/dev/mixer";
PARA_INFO_LOG("opening %s\n", dev);
ret = para_open(dev, O_RDWR, 42);
- if (ret < 0)
+ if (ret < 0) {
+ PARA_ERROR_LOG("could not open %s\n", dev);
return ret;
+ }
h = para_malloc(sizeof(*h));
h->fd = ret;
*handle = h;