qaqFei

Results 13 comments of qaqFei
trafficstars

When I turned up the buffer of the mixer, the delay ~~disappeared~~ decrease

I'm guessing it's get_pos using the now_time-start_time timing method, but there's a delay in updating the audio buffer

use_time will be different from the actual length of the music, but I can't remember if it's bigger or smaller

![Image](https://github.com/user-attachments/assets/29a4168d-a001-4cc5-a602-9628ff2813ce) ![Image](https://github.com/user-attachments/assets/a31a292f-acb0-4a0f-b61e-7670ae7c3e65) There is a real error, about 500ms every 300s, but it only happens in MP3 format i convert vm to mp3 using ffmpeg.

The audio speed is about 1.0016 times, which is very important in music games

When I only get his duration, it turns out to be wrong ![Image](https://github.com/user-attachments/assets/d449b0a9-dcc8-4c5c-afe5-877612b057c7)

ffmpeg says it has 302.52s, so sdl2-mixer is wrong.

It's also wrong when I use 2.7.2 ![Image](https://github.com/user-attachments/assets/c8bc7efd-737a-4e08-9652-5190a193c112)

I'm guessing it's also a problem with the sample rate, but it seems like a possibility

I tested this phenomenon and the results were not very promising. [test_result.csv](https://github.com/user-attachments/files/18919172/test_result.csv) ```py from os import environ; environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "" from io import BytesIO from math import ceil from pydub...