Skip to content

problem with music in mp3 (Part 7) #1

@ludo77

Description

@ludo77

Hello,
in the code (line 91 : music.play("pm1"),
I have the following error:

Traceback (most recent call): File "piman2.py", line 230, in <module> init() File "piman2.py", line 91, in init music.play("pm1") File "/usr/lib/python3/dist-packages/pgzero/music.py", line 51, in play _play(name, -1) File "/usr/lib/python3/dist-packages/pgzero/music.py", line 40, in _play _music.load(path) pygame.error : Unrecognized audio format
I get the same error if I change "pm" to "pm1.mp3".
If I convert mp3 to ogg, and change "pm1" to "pm1.ogg".
it works

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