Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82612

Re: Simple background sound effect playback

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'tutorial': 0.03; '&quot;the': 0.07; 'ignored': 0.07; 'snippet': 0.09; 'it."': 0.16; 'it.&quot;': 0.16; 'jacob': 0.16; 'optional': 0.16; 'pygame': 0.16; 'subject:effect': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'module': 0.19; 'trying': 0.19; 'options': 0.25; '&gt;': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'tried': 0.27; '[1]': 0.29; "doesn't": 0.30; 'dec': 0.30; 'errors': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'checking': 0.33; '"the': 0.34; 'could': 0.34; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'library.': 0.36; 'subject:Simple': 0.36; 'url:ref': 0.36; 'url:org': 0.36; 'should': 0.36; 'list': 0.37; 'being': 0.38; 'depends': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'itself': 0.39; 'to:addr:python.org': 0.39; 'mailing': 0.39; 'skip:p 20': 0.39; 'skip:u 10': 0.60; 'solve': 0.60; 'simple': 0.61; 'more': 0.64
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=sptxfGtzptPL+4YK01jHBG5JT3q4kvcP3PKc7+FpYDI=; b=NIq3SyrA3auCbhcE2h1qU/LzkQYDrwwOiMwQXqxaYdObHDG/D5ozsQ0BSlrWg/sf5S FJLVuBDUwJKsd4RW9FCJapsqbbC5qyqVMWIBsZ3XTQVj/8ZWgdk2hM5YuiABw8uPk7Xz /wfMyZGOF09WIgQMk9wt68agF3Oz2BN2RF25nm0iTtANUiDIM/k1uucjDVIyWsaC/zko juv5nlVwM/QQk8hp7wGd3IM+qhf1KR/sR559MScFZNlFr14zBg1oFDR+SniIc3leRExm NwzGLS6zc5qq9bDq1+D9L8ZTFhZXKbjSVNqVixvptMWfOYXF5iA5wWHGLnmQzRvGOtiH 4itw==
X-Received by 10.66.141.144 with SMTP id ro16mr23009577pab.120.1418847667342; Wed, 17 Dec 2014 12:21:07 -0800 (PST)
MIME-Version 1.0
In-Reply-To <A1A2E1322A6E49C5947B304C28628092@JakePC>
References <65314F0A9A824416A920374265BD359C@JakePC> <CALwzidmGOzhnHVxbYrk3DesEuqOddZGzLkcG5pR5Jg6SJ40SyA@mail.gmail.com> <A1A2E1322A6E49C5947B304C28628092@JakePC>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Wed, 17 Dec 2014 13:20:27 -0700
Subject Re: Simple background sound effect playback
To Python <python-list@python.org>
Content-Type multipart/alternative; boundary=001a1133316c33d4f6050a6f375b
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.17016.1418847675.18130.python-list@python.org> (permalink)
Lines 45
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1418847675 news.xs4all.nl 2879 [2001:888:2000:d::a6]:40917
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:82612

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, Dec 17, 2014 at 12:41 PM, Jacob Kruger <jacob@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Simple background sound effect playback Ian Kelly <ian.g.kelly@gmail.com> - 2014-12-17 13:20 -0700

csiph-web