[Bugs] #1367 UNSP: Measure stuck with alsamixer output format

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Wed Nov 11 05:16:46 EST 2009


#1367: Measure stuck with alsamixer output format
------------------------------------------+---------------------------------
    Reporter:  alsroot                    |          Owner:  walter                     
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Measure                    |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------
Changes (by sascha_silbe):

 * cc: sascha_silbe (added)


Comment:

 Measure 28 still fails to launch on non-XO hardware (and likely on XOs
 with recent distributions as well):

 {{{
 Traceback (most recent call last):
   File "/home/sascha.silbe/sugar-jhbuild/install/bin/sugar-activity", line
 21, in <module>
     main.main()
   File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.5/site-
 packages/sugar/activity/main.py", line 153, in main
     create_activity_instance(activity_constructor, activity_handle)
   File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.5/site-
 packages/sugar/activity/main.py", line 35, in create_activity_instance
     activity = constructor(handle)
   File "/home/sascha.silbe/Activities/Measure.activity/measure.py", line
 77, in __init__
     self.audiograb = AudioGrab(self.wave.new_buffer, self.ji)
   File "/home/sascha.silbe/Activities/Measure.activity/audiograb.py", line
 61, in __init__
     self.master  = self.get_master()
   File "/home/sascha.silbe/Activities/Measure.activity/audiograb.py", line
 254, in get_master
     return int(p)
 ValueError: invalid literal for int() with base 10: ''
 }}}

 Output of amixer:

 {{{
 sascha.silbe at twin:~$ amixer get Master
 Simple mixer control 'Master',0
   Capabilities: pvolume pvolume-joined pswitch pswitch-joined
   Playback channels: Mono
   Limits: Playback 0 - 64
   Mono: Playback 51 [80%] [-13.00dB] [on]
 sascha.silbe at twin:~$
 }}}

 sugar-toolkit seems to have a wrapper around the ALSA C API, but it's a
 private API (see sugar/extensions/deviceicon/speaker.py,
 sugar/src/jarabe/model/sound.py, sugar-toolkit/src/sugar/acme-volume-
 alsa.c). So gstreamer might still be the better choice.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/1367#comment:3>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list