[pulseaudio-tickets] [PulseAudio] #198: Alsa source and Wine

PulseAudio trac-noreply at tango.0pointer.de
Sat Feb 23 13:42:46 PST 2008


#198: Alsa source and Wine
---------------------------------+------------------------------------------
  Reporter:  AdamK               |       Owner:  ossman  
      Type:  defect              |      Status:  reopened
  Priority:  normal              |   Milestone:          
 Component:  alsa-plugins-pulse  |    Severity:  normal  
Resolution:                      |    Keywords:          
---------------------------------+------------------------------------------
Changes (by wereHamster):

  * status:  closed => reopened
  * resolution:  wontfix =>

Comment:

 The snd_pcm_delay() emulation inside the alsa pulse plugin is one of the
 main problems. PA uses used, ALSA uses frames to measure time, buffer
 positions etc. I suspect that there are rounding problems as I've seen
 wine wait until some value reaches 4000 while the value returned from ALSA
 was 3990. Alsa, pa_stream_get_latency() sometimes returns > buffersize,
 which is really bad for wine, it causes wine to think it has enough time
 and sleep for too long. I changed the code in alsa-pulse to use
 write_index-read_index and now wine works fine. Maybe there's a bug in the
 latency interpolation in PA or something. Or maybe it's just a rounding
 issue I described earlier (usec->bytes->frames vs. bytes->frames I use
 now). Anyway, I'd love to hear from the PA devs on this issue.

-- 
Ticket URL: <http://www.pulseaudio.org/ticket/198#comment:10>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list