Remove the dependency on pygame
CocoMUD relies on Pygame to play sounds in the client, mainly for triggers. This is a bit extreme, as pygame is not light, makes the client heavier and slower to start, although once up it's running smoothly. There are other libraries that could play sounds. The only constraint being on playing both OGG and WAV files, and on playing different sounds at once, doubtless a lighter library can be found for this task.
#2 Updated by Vincent Le Goff over 1 year ago
- Category changed from User interface to Customization
- Status changed from Open to In Progress
- % Done changed from 0 to 30
playsound seems to do the trick nicely. At a bonus, it supports WAV and MP3 file formats. But does it support OGG? The documentation says it "might" support other formats... which is not necessarily reassuring. To be tested on other platforms as well.
#3 Updated by Vincent Le Goff over 1 year ago
pydub seems to be an interesting choice too. However, it has more dependencies (it's able to read more formats, to be sure, and do more things with them). The question is whether it will be possible to package this library... and if it will be a real improvement for CocoMUD.
Please register to edit this issue