Re: Simple background sound effect playback

2014-12-21 Thread Akira Li
Jacob Kruger ja...@blindza.co.za writes: Would prefer to use something free, that could work somewhat cross-platform, but, my primary target is for windows OS, and would primarily just want to be able to easily trigger playback of either .wav or .mp3 background sound effects, but, yes, would

Re: Simple background sound effect playback

2014-12-21 Thread Jacob Kruger
4kir4...@gmail.com To: python-list@python.org Sent: Monday, December 22, 2014 12:11 AM Subject: Re: Simple background sound effect playback Jacob Kruger ja...@blindza.co.za writes: Would prefer to use something free, that could work somewhat cross-platform, but, my primary target is for windows

Re: Simple background sound effect playback

2014-12-20 Thread catalinf...@gmail.com
See this : pygame.mixer.init(frequency=22050, size=-16, channels=2, buffer=4096) song = pygame.mixer.Sound(bird.ogg) pygame.mixer.Sound.play(song) and then use the channel.set_volume(0, 1) time.sleep(1) On Wednesday, December 17, 2014 10:02:30 PM UTC+2, Jacob Kruger wrote: Ok, trying

RE: Simple background sound effect playback

2014-12-20 Thread Jacob Kruger
Ok, thanks - the following seemed to work perfectly: #start code import pygame, time pygame.mixer.init(frequency=22050, size=-16, channels=2, buffer=4096) song = pygame.mixer.Sound(bird.ogg) channel = pygame.mixer.Sound.play(song) channel.set_volume(0, 1) time.sleep(1) channel.set_volume(1, 0)

Re: Simple background sound effect playback

2014-12-17 Thread Jacob Kruger
to be installed, or something. Jacob Kruger Blind Biker Skype: BlindZA ...Roger Wilco wants to welcome you, to the space janitor's closet... - Original Message - From: Ian Kelly To: Python Sent: Wednesday, December 17, 2014 3:49 AM Subject: Re: Simple background sound effect playback

Simple background sound effect playback

2014-12-16 Thread Jacob Kruger
Would prefer to use something free, that could work somewhat cross-platform, but, my primary target is for windows OS, and would primarily just want to be able to easily trigger playback of either .wav or .mp3 background sound effects, but, yes, would also be nice to be able to control them a

Re: Simple background sound effect playback

2014-12-16 Thread Ian Kelly
On Tue, Dec 16, 2014 at 9:57 AM, Jacob Kruger ja...@blindza.co.za wrote: Would prefer to use something free, that could work somewhat cross-platform, but, my primary target is for windows OS, and would primarily just want to be able to easily trigger playback of either .wav or .mp3 background