Yair K. kirjoitti:
> On Wednesday 20 August 2008 12:23:39 Hannu Savolainen wrote:
>   
>> I took a quick look at pulseaudio (module-oss.c). There are few obvious 
>> errors:
>>
>> - If the trigger() function gets called with quick==true then it will 
>> fail for sure. It will not start recording.
>>     
>
> A modified pulseaudio still fails. Attached is a more complete strace output 
> (earlier I didn't have strace follow forks). The 29395 file is where it tries 
> to play.
>   

Still fd=9 (audio fd) is not specified when poll is called. So the 
application doesn't ask for OSS related events and poll will not return 
any of them.

However both GETIPTR and GETOPTR seem to get called and it seems to 
return proper values. However there seems to be long pauses between 
subsequent GETIPTR calls. These delays must be seconds since the 
fragment counter gets incremented by 88 or 181 fragments between calls.  
This indicates that there are some logic problems in pulseaudio.

Actually I don't think using mmap() gives any benefit to pulseaudio. 
It's just an Über sexy looking feature that programmers like to use. 
Pulseaudio seems to have implemented its own read/write routines on top 
of mmap() which doesn't make any sense.

Best regards,

Hannu
_______________________________________________
oss-devel mailing list
oss-devel@mailman.opensound.com
http://mailman.opensound.com/mailman/listinfo/oss-devel

Reply via email to