Public bug reported: 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). ** Affects: pyao (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1226634 Title: ao segfaults if an AudioDevice object is created too quickly after import To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pyao/+bug/1226634/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs