ge -
From: "Akira Li" <4kir4...@gmail.com>
To:
Sent: Monday, December 22, 2014 12:11 AM
Subject: Re: Simple background sound effect playback
"Jacob Kruger" writes:
Would prefer to use something free, that could work somewhat
cross-platform, but, my primary targ
"Jacob Kruger" 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 also be nice t
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)
c
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:
self 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
On Tue, Dec 16, 2014 at 9:57 AM, Jacob Kruger 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 sound effects, but,
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 li