[etoys-notify] [JIRA] Commented: (SQ-638) snd_pcm_avail_update() needs to be called in vm-sound-ALSA

Milan Zimmerman (JIRA) tracker at squeakland.org
Sun Dec 20 15:29:10 EST 2009


    [ http://tracker.squeakland.org/browse/SQ-638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=39042#action_39042 ] 

Milan Zimmerman commented on SQ-638:
------------------------------------

This is great. I wonder if it will resolve an issue I was about to create: On XO 1.5 os64, and to lesser degree on XO 1.0 802b1, pull out Sound Recorder, push "Record", and start talking to it. After a few attempts, Etoys will almost for sure freeze. Do you think it can be fixed by this?

> snd_pcm_avail_update() needs to be called in vm-sound-ALSA
> ----------------------------------------------------------
>
>                 Key: SQ-638
>                 URL: http://tracker.squeakland.org/browse/SQ-638
>             Project: squeakland
>          Issue Type: Bug
>          Components: etoys-sugar
>            Reporter: Sayamindu Dasgupta
>            Assignee: Sayamindu Dasgupta
>             Fix For: etoys 5 and showcase
>
>         Attachments: dlo_9375.patch
>
>
> In XO 1.5, the the sounds produced in Etoys and Scratch are jumpy (http://dev.laptop.org/ticket/9375). It turns out that the issue is solved by calling snd_pcm_avail_update() after calling snd_pcm_delay() in squeak/platforms/unix/vm-sound-ALSA/sqUnixSoundALSA.c
> This seems to be consistent with the ALSA documentation (http://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html#g41ca534658076885d9b077ad674750cd) which says about snd_pcm_avail_update():
> "Also this function might be called after snd_pcm_delay() or snd_pcm_hwsync() functions to move private ring buffer pointers in alsa-lib (the internal plugin chain)."

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tracker.squeakland.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the etoys-notify mailing list