Project

Profile

Help

Feature #134

Remove the dependency on pygame

Added by Vincent Le Goff over 1 year ago. Updated about 1 year 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.

History

#1 Updated by Vincent Le Goff over 1 year ago

  • Sprint/Milestone set to 16

#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.

#4 Updated by Vincent Le Goff about 1 year ago

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

Pybass has been chosen, see Feature #140: Use another library to play sounds.

Please register to edit this issue

Also available in: Atom PDF Tracking page