| Summary: | end of mp3 is cut off depending on chunksize | ||
|---|---|---|---|
| Product: | SDL_mixer | Reporter: | Sven <sven.koehler> |
| Component: | misc | Assignee: | Ryan C. Gordon <icculus> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sezeroz, sven.koehler |
| Version: | 2.0.4 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: |
sdl.py
the mp3 file |
||
Created attachment 4195 [details]
the mp3 file
|
Created attachment 4194 [details] sdl.py So find attached a very simple test program (python, PySDL2 0.9.6) that loads and plays an mp3. The mp3 is the sound of somebody saying "Please play this message". If the chunksize passed to Mix_OpenAudio is 8192, the problem is most severe. The end of the word "message" is cut off. If I change the chunksize to 4096, the problem is less severe. In both cases, I assume that the last chunk of the mp3 is not played. The larger the chunksize, the more of the mp3 is not played. This should not happen, regardless of the chunksize. If I change the chunksize to 4000, I can work around the problem. I assume, there might be mp3 files for which the problem will persists. Sorry that the program is python. I'm on Arch Linux using sdl2_mixer 2.0.4-3 and python-pysdl2 0.9.6-4 from Arch's AUR. As far as I can see, python is a rather thin layer on top the C API. So I assume the bug persists if I would rewrite the program in C.