Ticket #3638 (new defect)

Opened 12 months ago

Last modified 12 months ago

Physics doesn't release audio device properly

Reported by: pgf Owned by: garycmartin
Priority: Unspecified by Maintainer Milestone: Unspecified by Release Team
Component: Physics Version: Unspecified
Severity: Unspecified Keywords:
Cc: Distribution/OS: OLPC
Bug Status: Unconfirmed

Description

this activity doesn't release the audio device when not using it. this will prevent an XO laptop from suspending properly, and may even prevent other programs from using the audio device.

in fact, Physics seems to open the device at startup, and never closes it until exit.

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.

Change History

Changed 12 months ago by garycmartin

Thanks, will take a look, pygame must be opening the audio device by default even though I'm not using any sound (yet).

Note: See TracTickets for help on using tickets.