Simple background sound effect playback

Jacob Kruger jacob at blindza.co.za
Sun Dec 21 17:22:59 EST 2014


Will have a look at it as well, but, also already tested generating a 
console/command line app using the pygame code to play an .ogg file, panning 
it left and right, and the compilation worked alright, and am now still busy 
reloading primary machine, so haven't taken it too much further, but let's 
see...

Am not sure of redistribution licence either, and will need/want to test it 
on a couple of other types of machines.

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
"Roger Wilco wants to welcome you...to the space janitor's closet..."

----- Original Message ----- 
From: "Akira Li" <4kir4.1i at gmail.com>
To: <python-list at python.org>
Sent: Monday, December 22, 2014 12:11 AM
Subject: Re: Simple background sound effect playback


> "Jacob Kruger" <jacob at 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 also be nice to
>> be able to control them a little bit in terms of volume, possibly
>> stereo panning as well as playback rate/frequency/pitch?
>>
>> I have used something called sound_lib, as well as another one
>> relating to a sort of windows directSound effect, but, both of them
>> had issues when working with either py2exe or cx_freeze when it came
>> to compiling into executable, and main thing is would like to keep it
>> simple...<smile>
>>
>> Suggestions?
>>
>
> You could try GStreamer: it is free, cross-platform, it allows you to
> play media files in the background, to control volume, stereo panning
> (e.g., GstAudioPanorama), to change the playback rate while preserving
> pitch, it can use DirectShow on Windows, etc -- see
> http://gstreamer.freedesktop.org/features/
>
> The downside is that it may be complex to install and use e.g., it
> probably works with py2exe but it won't be simple to configure.
>
> If you know other library that provides similar feature list while being
> less complex; do tell.
>
>
> --
> Akira.
>
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 




More information about the Python-list mailing list