[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Pygame2 SDL_mixer segmentation fault



On Mon, Feb 1, 2010 at 4:50 AM, Marcus von Appen <mva@xxxxxxxxxxxx> wrote:
It looks, like opening the audio device requires thread support on some
platforms. I changed the sdlmixer.open_audio() call to support threads,
which seems to fix the problem.
While working on that, sdlmixer.init() was changed to support the
optional INIT_FLAC/INIT_MOD... arguments properly, so do not forget to
initialize sdlmixer with something like:

   import pygame2.sdlmixer as sdlmixer
   import pygame2.sdlmixer.constants as const
   ...
   sdlmixer.init (const.INIT_FLAC|const.INIT_MOD...)
   ...

if you want support for additional audio formats.

The changes are committed in SVN revision 2740.

Regards
Marcus

Thanks for figuring this out; SDL mixer works perfectly now.

--
Evan Kroske
http://welcome2obscurity.blogspot.com/
The personal blog of Evan Kroske,
novice software developer.