Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing mixer.music.play() start parameter & adding mp3 warning #1886

Merged
merged 3 commits into from Jun 4, 2020

Conversation

MyreMylar
Copy link
Contributor

@MyreMylar MyreMylar commented Jun 1, 2020

Looking into this old issue:

#671

I discovered that the start parameter does work on linux & windows now, but after trying a couple of different mp3 files its 'seeking' accuracy with that file type depends on the file used. This is basically a difficulty with the mp3 file format itself, it includes no timing information so you have to guess based on the file size but doe to things like variable bit rate and tags applied to the file these guessed timings can be thrown off.

I thought the best way to resolve the issue was to add a unit test for the parameter using .ogg files which should be more reliable and add a note to the docs that indicates that for mp3s, the start time parameter is unreliable.

Copy link
Member

@illume illume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thanks.

@illume illume merged commit 4cbc423 into pygame:master Jun 4, 2020
@MyreMylar MyreMylar deleted the mixer-music-start-seek-test branch June 5, 2020 16:41
@illume illume added docs mixer.music pygame.mixer.music labels Sep 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs mixer.music pygame.mixer.music
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants