Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what are the formats supported in Pygame for playing sound?

Tags:

python

pygame

Which sound formats are supported in these modules:

pygame.mixer.sound 

or:

pygame.mixer.music 
like image 872
Simon Larsen Avatar asked Aug 25 '12 16:08

Simon Larsen


2 Answers

From pygame documentation:

The Sound can be loaded from an OGG audio file or from an uncompressed WAV.

As for Music, it seems to support several different including MP3 (limited), OGG, XM & MOD. See Documentation for music (and the comments on that page).

like image 59
Qiau Avatar answered Oct 08 '22 05:10

Qiau


You may want to have a look here : http://www.pygame.org/docs/ref/mixer.html#pygame.mixer.Sound

The Sound can be loaded from an OGG audio file or from an uncompressed WAV

like image 36
Y__ Avatar answered Oct 08 '22 05:10

Y__