Skip to content

SDL_mixer 2.0.4: Mix_HasMusicDecoder is not defined #143

@zmarvel

Description

@zmarvel

Steps to reproduce

Python 3.7.3 (default, Apr  3 2019, 05:39:12) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sdl2.sdlmixer
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/zack/src/py-sdl2/sdl2/sdlmixer.py", line 149, in <module>
    Mix_HasMusicDecoder = _bind("Mix_HasMusicDecoder", [c_char_p], SDL_bool)
  File "/home/zack/src/py-sdl2/sdl2/dll.py", line 87, in bind_function
    (funcname, self._dll))
ValueError: could not find function 'Mix_HasMusicDecoder' in <CDLL 'libSDL2_mixer-2.0.so.0', handle 1379920 at 0x7f66130b2b00>

Description

This symbol is declared extern in SDL_mixer.h as of the 2.0.3 release, but is not defined anywhere (I believe this is a bug in SDL_mixer).

After removing the line in sdlmixer.py that requires this symbol, I am able to import the sdl2.sdlmixer module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions