Project

Profile

Help

Feature #134

closed

Remove the dependency on pygame

Added by Vincent Le Goff about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Customization
Sprint/Milestone:
% Done:

100%

Company:
-
Contact person:
-
Additional contact persons:
-

Description

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.

Actions #1

Updated by Vincent Le Goff about 6 years ago

  • Sprint/Milestone set to 16
Actions #2

Updated by Vincent Le Goff about 6 years 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.

Actions #3

Updated by Vincent Le Goff about 6 years 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.

Actions #4

Updated by Vincent Le Goff almost 6 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 30 to 100

Please register to edit this issue

Also available in: Atom PDF Tracking page