Ticket #3630 (new defect)

Opened 12 months ago

Last modified 12 months ago

Scratch doesn't close audio device after usage

Reported by: sascha_silbe Owned by: RafaelOrtiz
Priority: Unspecified by Maintainer Milestone: Unspecified by Release Team
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

Changed 12 months 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.