#11193 HIGH 1.75-so: XO-1.75: Scratch & Etoys freeze when playing audio

Zarro Boogs per Child bugtracker at laptop.org
Tue Nov 22 13:05:42 EST 2011


#11193: XO-1.75: Scratch & Etoys freeze when playing audio
--------------------------------------+-------------------------------------
           Reporter:  bert            |       Owner:  saadia       
               Type:  defect          |      Status:  new          
           Priority:  high            |   Milestone:  1.75-software
          Component:  etoys-activity  |     Version:  1.75-B1      
         Resolution:                  |    Keywords:               
        Next_action:  diagnose        |    Verified:  0            
Deployment_affected:                  |   Blockedby:  10831        
           Blocking:  11454           |  
--------------------------------------+-------------------------------------

Comment(by godiard):

 I am trying to test the proposal of changes to squeak by Jonathan Corbet
  with os12 and os11 (without changes in the kernel),
 to see if we can solve the problem from the side of squeak.

  os12 + scratch without changes, playing sound works, a little crispy,
  recording gives a error:
  "sound StartRecording: snd_pcm_hw_params: Invalid argument"

  os12 + scratch with changes (*), playing sound works ok,
  recording show a error:
  "unable to find control Capture, 0"

  os11 + scratch with changes, scratch frozen like without changes.

 Attached is a diff with the changes I did (I hope I understood Jon
 proposal)
 and the original code.

 A quick note: in the code we have

  snd(pcm_nonblock(output_handle, 1), "sound_Start: snd_pcm_nonblock");
  snd(async_add_pcm_handler(&output_handler, output_handle,
 output_callback, 0), "soundStart:  snd_add_pcm_handler");

 I have replaced 1 by 0 [1], but I don't know what to do with
 async_add_pcm_handler

-- 
Ticket URL: <http://dev.laptop.org/ticket/11193#comment:13>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list