Re: [linux-audio-dev] fragmentcount ioctl with - 1?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] fragmentcount ioctl with - 1?
From: Paul Barton-Davis (pbd_AT_Op.Net)
Date: Fri Sep 08 2000 - 02:58:01 EEST


In message <20000907233226.61543_AT_space.twc.de>you write:
> Hi!
>
>I just found out that if I try to initialize the fragment count/size, then my
>code is currently always wrong by 1. It seems that when using
>
>ioctl(audio_fd, SNDCTL_DSP_SETFRAGMENT, 0xMMMMSSSS);
>
>then 2^SSSS is the usual fragment value, whereas MMMM is the number of
>fragments MINUS 1. Can anybody confirm this MINUS 1 (didn't find it in

this is a "well-known" problem with OSS. take a look at the source, but
i've run into this problem (back in the days when i still used the OSS
API).

--p


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Sep 08 2000 - 03:49:49 EEST