aboutsummaryrefslogtreecommitdiff
path: root/desiredata
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-06-01 00:44:52 +0000
committerN.N. <matju@users.sourceforge.net>2009-06-01 00:44:52 +0000
commit739f3c9df7072c25b4a7f04f511479701f917b5f (patch)
tree3a00d036e41d8fb9e72f383dbf3d6420cd291b62 /desiredata
parentce81f78669ca67c8bde4cfa6a2026b6e5fc0547f (diff)
better errormsg
svn path=/trunk/; revision=11598
Diffstat (limited to 'desiredata')
-rw-r--r--desiredata/src/s_audio_oss.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/desiredata/src/s_audio_oss.c b/desiredata/src/s_audio_oss.c
index 5c795158..d68a6aa9 100644
--- a/desiredata/src/s_audio_oss.c
+++ b/desiredata/src/s_audio_oss.c
@@ -88,11 +88,11 @@ void oss_init() {
void oss_set32bit() {oss_32bit=1;}
-typedef struct _multidev {
+struct t_multidev {
int fd;
int channels;
int format;
-} t_multidev;
+};
int oss_reset(int fd) {
int err = ioctl(fd,SNDCTL_DSP_RESET);
@@ -351,12 +351,12 @@ static void oss_calcspace() {
audio_buf_info ainfo;
for (int dev=0; dev<linux_noutdevs; dev++) {
if (ioctl(linux_dacs[dev].fd, SOUND_PCM_GETOSPACE,&ainfo) < 0)
- error("OSS: ioctl on output device %d failed",dev);
+ error("OSS: ioctl on output device %d failed (fd=%d)", dev, linux_dacs[dev].fd);
linux_dacs[dev].space = ainfo.bytes;
}
for (int dev=0; dev<linux_nindevs; dev++) {
if (ioctl(linux_adcs[dev].fd, SOUND_PCM_GETISPACE,&ainfo) < 0)
- error("OSS: ioctl on input device %d, fd %d failed", dev, linux_adcs[dev].fd);
+ error("OSS: ioctl on input device %d failed (fd=%d)", dev, linux_adcs[dev].fd);
linux_adcs[dev].space = ainfo.bytes;
}
}