Play sound files with pygame in a cross-platform manner

Category: Python - Miscellaneous

This simple script shows how to play back a sound file using the mixer module from the pygame library. If you have pygame installed, this will work on all major platforms. The mixer module supports WAV and OGG files with many different sample rates, bits per sample and channels. The script will play back all supported files given on the command line sequentially. Date: 05 March, 2012


Multimedia - Pygame - Sound - Sysadmin

Homepage: http://code.activestate.com/recipes/521884-play-sound-files-with-pygame-in-a-cross-platform-m/?in=lang-python

Developer: Chris Arndt

License: Python License

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Get technical information and tags of a lot of multimedia files.

developer Developer: mediainfo
license License: GNU Lesser General Public License (LGPL)
operating systems Operating System: MinGW/MSYS (MS Windows), All 32-bit MS Windows (95/98/NT/2000/XP), Linux


Digital picture recovery utility restore deleted images, pictures and photographs including JPEG TIFF AVI MPEG 3gp MOV file from digital camera memory card.

developer Developer: digital picture recovery
license License: GNU General Public License (GPL)
operating systems Operating System: Not Available


USB drive data recovery software restores lost or deleted files like word, official reports, important documents and even your favorite collection of music from thumb drive.

developer Developer: flash recovery
license License: GNU General Public License (GPL)
operating systems Operating System: Not Available


Amazing Shaman Slides & Text is a multi-platform compatible script that supports up to 100 images, transparent images, image positioning, 9 image motion modes, image timing control, image direction control, image status bar text, link/target for each image, background image support, background image motion modes, borders, positionable labels, speed control and more.

developer Developer: BrainCode.com and OEC Co...
license License: Freeware
operating systems Operating System: Unix/Linux/Windows


Add dynamic content to your site, for free.

developer Developer: RF
license License: Freeware
operating systems Operating System: Windows NT/2000/2003/XP with IIS


Advanced Slideways Image Slideshow is a multi-platform compatible script that holds up to 100 images, scrolls in four directions.

developer Developer: BrainCode.com and OEC Co...
license License: Freeware
operating systems Operating System: Unix/Linux/Windows


Voice - Java Sound Console is a multi-platform compatible Java sound file player with customizable console you can blend with your design.

developer Developer: RF
license License: Freeware
operating systems Operating System: Unix/Linux/Windows


Download daily comics from comics.

developer Developer: sami jan
license License: Python License
operating systems Operating System: Windows


Function becomes useful when we need hex value of crc32() result, even if it is negative.

developer Developer: Denis Barmenkov
license License: Python License
operating systems Operating System: Windows