[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Sound still glitchy in 1.8.1rc1 on Ubuntu
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Sound still glitchy in 1.8.1rc1 on Ubuntu
- From: "René Dudfield" <renesd@xxxxxxxxx>
- Date: Tue, 15 Jul 2008 09:52:57 +1000
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 14 Jul 2008 19:53:01 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=kviWD3P+XjexvisFFmtuPwN6RdxLscQQImH0/gDf+uY=; b=cRGq7BpGMwjOArEFLp/wdC4X5pybH6DAPW4bQa6pEXBhwINPtmD52bkIRbSVODyS5o +E/FpxVxuI3ivMOibfDri2ObjGLd/Psp9ny34WcL8QQi9wk8nEA8j0OrxjqpWgQAdHf0 lNx/D3enLpwFbehuC8xtCx6fqSaC/u9S9lcSk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=l+yRnDDXiWu89TZEktlSBa/nkwQPsXtKYm1cRH+6Dcrhe+n/doFjJspVBioxmjPfxK ImmkWdW6PJ6sLkzEwCcvzfIkuvq3+//StCJE5L3kDAFHU5HJZyB0p9fPlSG47JJUIGIc 0w/5zMjMwtFRtXLCXiC82Hdz+I6dThNs7cl6s=
- In-reply-to: <487BA994.7030506@xxxxxxxxxx>
- References: <487B76F7.5030106@xxxxxxxxxx> <20080714192533.D465114101E5@xxxxxxxxxxxxxx> <487BA994.7030506@xxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
hi,
see this ubuntu bug for a possible fix:
https://bugs.launchpad.net/ubuntu/+source/libsdl1.2/+bug/216397
There's some debs you can download if you like, but the patches should
eventually get into ubuntu.
Btw, it's working ok for me, and others on ubuntu. So it's kind of a
combination of problems from pygame down to sdl, down to pulse, down
to alsa, down to alsa drivers -- but only for some computers and
combinations of sound formats.
cheers,
On Tue, Jul 15, 2008 at 5:31 AM, Gary Bishop <gb@xxxxxxxxxx> wrote:
> 1. No, diff. That sleep is just waiting for the audio to terminate.
>
> 2. Yes, fooling with the options to pygame.mixer.pre_init seems to always be
> the not very satisfactory answer. My understanding of the goal for 1.8.1 was
> to eliminate that requirement. Having users fool with numbers on a hit or
> miss basis is a sure way to drive them away.
>
> That said, I found that forcing the rate to 44100 instead of letting it be
> at 22050 where it apparently went by default makes it sound better. Makes no
> sense that a higher sampling rate cures it but it appears to.
>
> 3. Yes, the real code pumps the event queue. That was just a boiled down
> demo case.
>
> Thanks
> gb
>
> claxo wrote:
>>
>> I'am not an expert in pygame audio but:
>>
>> 1. It makes any diference if you reduce the sleep time? Say, 1/30 sec by
>> example.
>>
>> 2. It makes some diference if you initialize the mixer with diferent
>> buffer
>> sizes ? That was pointed to me by Patrick Mullen time ago, and the advice
>> periodically resurfaces. Sometimes, especially with old hardware,
>> increasing the buffer size alleviates the problem ( at the cost of more
>> latency, If i remember well).
>>
>> ex: # last param is buffer size pygame.mixer.init(44100, -16,
>> True, 1024)
>>
>> 3. Your real code really dont pump the event queue? Maybe .get_busy()
>> updates all necesary inner state, but a lot of pygame functionallity
>> depends on the event queue being pumped.
>>
>> HTH
>>
>> --- claxo
>