Opened 8 years ago

Closed 3 years ago

#3638 closed defect (fixed)

Physics doesn't release audio device properly

Reported by: pgf Owned by: garycmartin
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Physics Version: Unspecified
Severity: Unspecified Keywords: AU
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 (3)

comment:1 Changed 8 years 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).

comment:2 Changed 6 years ago by bashintosh

  • Keywords AU added

comment:3 Changed 3 years ago by quozl

  • Resolution set to fixed
  • Status changed from new to closed

Does not occur on Physics-26 or Physics-30 on an XO, closing.

Note: See TracTickets for help on using tickets.