Simple background sound effect playback

Jacob Kruger jacob at blindza.co.za
Thu Dec 18 00:28:02 EST 2014


The code returns no errors, and can set the volume levels, so the objects are being instantiated, etc., but, just no sound being output.

Might have to do with SDL not being installed or something, and it's being covered by error bypassing or something - will check out those links in case.

Thanks

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 10:20 PM
  Subject: Re: Simple background sound effect playback


  On Wed, Dec 17, 2014 at 12:41 PM, Jacob Kruger <jacob at blindza.co.za> wrote:
  >
  > Ok, trying simple code from a pygame tutorial snippet - nothing happens - just silent, but with no errors being returned:
  >  
  > [SNIP]
  >  
  > Think this is why ignored pygame in past...<smile> - think it actually needs more than itself to be installed, or something.


  The docs say: "The mixer module is optional and depends on SDL_mixer. Your program should test that pygame.mixer is available and intialized before using it." [1]


  Have you tried checking that SDL_mixer is installed and pygame.mixer is available? If that doesn't solve the problem, you could try the pygame mailing list or one of the other options from the wiki. Unfortunately I don't have the experience to be able to recommend any specific library.


  [1] http://www.pygame.org/docs/ref/mixer.html


------------------------------------------------------------------------------


  -- 
  https://mail.python.org/mailman/listinfo/python-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20141218/b1912100/attachment.html>


More information about the Python-list mailing list