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)
channel = pygame.mixer.Sound.play(song)
time.sleep(1)
#end code
Will now just have to double-check/test compilation of something including
something like this, using something like cx_freeze, etc., but, thanks again.
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
...Roger Wilco wants to welcome you, to the space janitor's closet...
---original message---
<catalinf...@gmail.com> wrote in message
news:e5f211da-d16a-4351-8094-55ba9d2d3...@googlegroups.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 simple code from a pygame tutorial
>> snippet - nothing happens - just silent, but with no errors being
>> returned:
>> # import the pygame module
>> import pygame
>> # start pygame
>> pygame.init()
>> # load a sound file into memory
>> sound = pygame.mixer.Sound("bird.ogg")
>> channel = sound.play()
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list