lordmauve / pgzero

A zero-boilerplate games programming framework for Python 3, based on Pygame.
https://pygame-zero.readthedocs.io/
GNU Lesser General Public License v3.0
536 stars 189 forks source link

1.2.1 refuses to play ogg files from music folder, such as Code-The-Classics games #260

Closed DoctorMikeReddy closed 3 years ago

DoctorMikeReddy commented 3 years ago

theme.ogg for the Code-The-Classics games works with pgzero 1.2 an Pygame 1.9.6 but will not work for 1.2.1 (which also requires pygame 2 or better)

DoctorMikeReddy commented 3 years ago

Samples from here https://github.com/Wireframe-Magazine/Code-the-Classics

DoctorMikeReddy commented 3 years ago

Using Python 3.8.10

lordmauve commented 3 years ago

I think this is unfortunately due to PyGame switching the supported music codecs that they include in wheel files. I've been able to play a .ogg file on Linux in the past week, is this on Windows?

DoctorMikeReddy commented 3 years ago

Yes, Windows 10 (latest version)

DoctorMikeReddy commented 3 years ago

I have installed 3.8.6 on my Alienware and theme.ogg in the music folder works again. Must be an interaction between python 3.8.10 and Pygame 2.0.1

lordmauve commented 3 years ago

Pygame devs have been putting effort into build automation and bug hunting so that the music codecs are correctly installed in wheels now. I think this can be closed.

arganoid commented 2 years ago

Here's the pygame issue about it. I have just seen this occur on someone else's machine, on a new installation of Pygame and pgzero. https://github.com/pygame/pygame/issues/2739