Anders Torger wrote:
>On Wednesday 11 September 2002 23.52, you wrote:
>> Anders Torger wrote:
[...]
>> >The problem here is that the output buffer is full, the pcm is not
>> >RUNNING, but the file descriptor gets triggered anyway. When can
>> > that happen?
>>
>> we had a hauntingly similar discussion about this a few months ago,
>> maybe a year. iirc everybody considered the pcm behaviour broken,
>> except for the alsa coders.
>>
>> seeing that you come to the same conclusion makes me again vote
>> for changing this behaviour to 'poll/select blocks until running'.
>
>I shall be humble in this question, but of what I know now, the 
>behaviour does indeed seem broken. I get the effect "program stops 
>working when software buffer > hardware buffer", which would not happen 
>if it blocked as expected. It is harder for me to see what is the 
>advantage of the current behaviour, apart from that an obviously buggy 
>program gets a broken pipe instead of blocking infinitely. However, I 
>don't think that very small advantage justifies breaking programs that 
>expect sound cards file descriptors to behave as ordinary files.

if the api can still be changed every now and then, i don't see why
one would avoid a fix here to avoid compatibility problems. actually 
i don't think there are applications out there that make use of this
'feature', because it defies human logic (as your case shows us
again). and it is hard to imagine code logic that is based on 'poll/
select returns immediately', everyone rather has to work around it.

>So, I would appriciate to get a full explanation of why the behaviour 
>is like it is.

me too (still ;).

tim

ps: cannot say much about xruns in readX access -- i've only done 
mmap()d IO so far, which seems very reliable with an ice1712 and
an emu8k here.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to