Subject: [linux-audio-dev] problem w/ /dev/dsp
From: zachary lieberman (zlieb_AT_parsons.edu)
Date: Wed Jun 26 2002 - 19:47:00 EEST
hi all,
I am new to audio linux programming but am excited about what I've read
about low latency and multichannel support. I am running alsa with oss
emulation on a system w/ a soundblaster live card.
I am able to compile and run sound input recording apps (like parrot.c)
which don't use a buffer input fine. I am trying to compile some code
which uses a buffered input. The main problem is that
audio_buf_info info;
ioctl(fd, SNDCTL_DSP_GETISPACE, &info)
return info.bytes
returns a negative number, specifically "-17073743864"
this is after I set the sample rate to 22,050
before that, I get
ioctl(audioport, SNDCTL_DSP_GETISPACE, &info);
printf("Input buffering Information\n");
printf("\tInput fragments available: %d\n", info.fragments);
printf("\tTotal input fragments: %d\n", info.fragstotal);
printf("\tInput Fragment Size: %d\n", info.fragsize);
printf("\tBytes that can be read: %d\n", info.bytes);
returning 0,2,4096,and 0 respectively
any advice about order of operations that might help?
thanks in advance for any advice...
best, zach
This archive was generated by hypermail 2b28 : Wed Jun 26 2002 - 19:56:48 EEST