Opened 12 years ago

Last modified 12 years ago

#3630 new defect

Scratch doesn't close audio device after usage

Reported by: sascha_silbe Owned by: RafaelOrtiz
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Scratch Version: Unspecified
Severity: Major Keywords:
Cc: Distribution/OS:
Bug Status: Unconfirmed

Description

After playing a sound, Scratch doesn't close the audio device and even keeps streaming audio data to the device. Apart from wasting energy, it also prevents other Activities from using the audio device, at least on some hardware (including XO-1.75).

Change History (1)

comment:1 Changed 12 years ago by pgf

  • Summary changed from doesn't close audio device after usage to Scratch doesn't close audio device after usage

this command can help observe that the activity is doing the right thing:

    while sleep 0.1
    do  
        egrep 'closed|state' /proc/asound/card0/pcm0p/sub0/status
    done

the output should be "RUNNING" while noise is being made, and "closed"
when not.

Note: See TracTickets for help on using tickets.