[EMAIL PROTECTED] wrote:
>From reading the fcntl module's docs, I came to the following solution:
>
> try:
> f = array.array('h', [0])
> fcntl.ioctl(audio_fd, ossaudiodev.SNDCTL_DSP_GETBLKSIZE, f, 1)
> frag_size = f.tolist()[0]
> except:
> frag_size = -1
>
Hello,
I am writing an app that records from the soundcard using ossaudiodev.
In the OSS programmer's guide they recommend when reading data
fragments from the soundcard
to use the fragment size as it is requested by the driver. According to
the programmer's guide
the ioctl call to determine the r