ao segfaults if an AudioDevice object is created too quickly after import

Bug #1226634 reported by Mark Edgington
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyao (Ubuntu)
New
Undecided
Unassigned

Bug Description

It appears that pyao requires some setup time after the ao module is imported, otherwise instantiating an AudioDevice object causes a segfault. Test code is below:

--- BEGIN PYTHON FILE ---
#!/usr/bin/env python
import ao

# prevent weirdness with ao segfaulting when AudioDevice is instantiated
#import time ; time.sleep(1)

# PulseAudio sample-specification seems to be sr=44100, num_channels=2, 16-bit
dev = ao.AudioDevice('pulse')
--- END PYTHON FILE ---

I'm using Ubuntu 13.04 (64-bit).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.